Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanning leaves loaded modules #108

Open
dag opened this issue May 19, 2011 · 1 comment
Open

Scanning leaves loaded modules #108

dag opened this issue May 19, 2011 · 1 comment
Labels
Milestone

Comments

@dag
Copy link
Owner

dag commented May 19, 2011

This can shadow bugs where a module is accessed as an attribute of a package. Is there a way to "unport" modules? Deleting them from sys.modules leaves the attributes intact.

@dag
Copy link
Owner Author

dag commented Sep 6, 2011

I'm not sure if it is sanely possible to "unimport" in Python. Perhaps the default scanning should be limited to packages named 'tests' (including subpackages). This goes against the original ideals of Attest but might be sensible for a default. This is really only about when you run "attest" with no arguments specifying the location of the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant