setup.py test fails on atexit

Bug #311778 reported by Evelyn Mitchell
2
Affects Status Importance Assigned to Milestone
Pythoscope
Fix Released
Low
Michal Kwiatkowski

Bug Description

test.test_store.TestStoreWithCustomSeparator.test_uses_system_specific_path_separator ... ok

----------------------------------------------------------------------
Ran 195 tests in 6.652s

OK
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/mydir/mydir/pythoscope-0.3.2/fixture-1.1.2-py2.5.egg/fixture/io.py", line 49, in _expunge_all
    for d in _tmpdirs:
TypeError: 'NoneType' object is not iterable
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/mydir/mydir/pythoscope-0.3.2/fixture-1.1.2-py2.5.egg/fixture/io.py", line 49, in _expunge_all
    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).

Revision history for this message
Michal Kwiatkowski (ruby) wrote :

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.

Changed in pythoscope:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Fixed in trunk.

Changed in pythoscope:
assignee: nobody → Michal Kwiatkowski (ruby)
milestone: none → 0.4.2-dependency-cleanup
status: Confirmed → Fix Committed
Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Fix released in Pythoscope 0.4.2.

Changed in pythoscope:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.