CleanCut / green

Green is a clean, colorful, fast python test runner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

attempted relative import beyond top-level package

theoparis opened this issue · comments

So i can't use relative imports with green, and unittest supports -t . argument for using relative imports, however green does not support -t so it errors. I am trying to do

from ..py_cfg.source import AnyserFileConfigSource

Because my test folder is seperate from the package.
I can't do a normal import because it picks up the package if it is installed globally as well (which doesn't contain the latest changes).

Sorry for the delay--I didn't see the notification for this issue! Are you still experiencing this problem?

If so, I'll need a few more details. I'm not exactly sure what you are experiencing based on the description.

Closing due to inactivity. Feel free to reopen if you are still experiencing a problem and can provide more details.