CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
785 stars 75 forks source link

attempted relative import beyond top-level package #243

Closed theoparis closed 2 years ago

theoparis commented 3 years ago

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).

CleanCut commented 3 years ago

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.

CleanCut commented 2 years ago

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