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

AttributeError: 'NoneType' object has no attribute 'startswith' when running under pytest #55

Closed
dstufft opened this issue Sep 18, 2014 · 0 comments · Fixed by #56
Closed

Comments

@dstufft
Copy link
Contributor

dstufft commented Sep 18, 2014

Apparently pytest puts a module into sys.modules with a None key, this causes this code:

if mod_name.startswith(tuple(self.ignore)):
to bomb out because None.startswith() doesn't work.

Probably this should have a check above it looking for if mod_name is None: continue as well.

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

Successfully merging a pull request may close this issue.

1 participant