setup.py test fails on atexit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pythoscope |
Fix Released
|
Low
|
Michal Kwiatkowski |
Bug Description
test.test_
-------
Ran 195 tests in 6.652s
OK
Error in atexit.
Traceback (most recent call last):
File "/usr/lib/
func(*targs, **kargs)
File "/home/
for d in _tmpdirs:
TypeError: 'NoneType' object is not iterable
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/
func(*targs, **kargs)
File "/home/
for d in _tmpdirs:
TypeError: 'NoneType' object is not iterable
It appears to me that you're expecting a temp directory, and one wasn't created:
def _expunge_all():
"""exit function to remove all registered tmp dirs."""
for d in _tmpdirs:
_expunge(d)
So, this may be a non-pythoscope bug (that is, it could be a bug in setuputils, or eggs).
It may also be a bug in fixture. This error only happens when tests are run through "python setup.py test". When run using nosetests command, the error message doesn't appear.