Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
sys.modules[None] gets pseudo module when pytest skip condition is string #2103
In pypa/setuptools#860, the test_sandbox tests started failing when another commit was made that invoked a pytest skip with a string expression, because that causes
Thanks a lot for taking the time to find a minimal example to replicate the issue!
I also find it weird. Decided to investigate a little, found the code that does that here. I think the intent is to keep the module object alive.
I commented out that line and all tests pass both in py27 and py35, so we might either comment it out or perhaps don't use