Wed Jun 28 07:55:39 2006
Ticket #71 (Closed: worksforme)
nosetests -s results in IOError: [Errno 29] Illegal seek
| Priority: | normal | Reporter: | guest |
|---|---|---|---|
| Severity: | normal | Assigned to: | jpellerin |
| Component: | nose | Status: | closed |
| Version: | 0.9 | Resolution: | worksforme |
| Milestone: | 0.9 | Keywords: |
Description by guest:
I do:
$ nosetests -s
and get:
Traceback (most recent call last):
File "/usr/bin/nosetests", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/core.py", line 434, in main
return sys.exit(not run(*arg, **kw))
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/core.py", line 442, in run
result = TestProgram(*arg, **kw).success
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/core.py", line 201, in __init__
self.runTests()
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/core.py", line 229, in runTests
result = self.testRunner.run(self.test)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/core.py", line 100, in run
result = unittest.TextTestRunner.run(self, test)
File "/usr/lib/python2.4/unittest.py", line 696, in run
test(result)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 40, in __call__
self.run(*arg, **kw)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 54, in run
test(result)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 40, in __call__
self.run(*arg, **kw)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 54, in run
test(result)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 40, in __call__
self.run(*arg, **kw)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 54, in run
test(result)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 40, in __call__
self.run(*arg, **kw)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 54, in run
test(result)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 40, in __call__
self.run(*arg, **kw)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/suite.py", line 54, in run
test(result)
File "/usr/lib/python2.4/unittest.py", line 281, in __call__
return self.run(*args, **kwds)
File "/usr/lib/python2.4/unittest.py", line 276, in run
if ok: result.addSuccess(self)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/result.py", line 176, in addSuccess
Result.addSuccess(self, test)
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/result.py", line 83, in addSuccess
self.resetBuffer()
File "/usr/lib/python2.4/site-packages/nose-0.9.1.dev_r63-py2.4.egg/nose/result.py", line 104, in resetBuffer
sys.stdout.truncate(0)
IOError: [Errno 29] Illegal seek
using nose patch 68 from SVN under Ubuntu Dapper (6.06).
Not sure why the egg is labeled dev_r63, but it's definiately patch 68.
Changelog
Thu Jun 29 14:20:18 2006: Modified by jpellerin
- milestone set to 0.9
- status changed from new to assigned
Thu Jun 29 22:19:11 2006: Modified by jpellerin
Fri Jun 30 21:19:27 2006: Modified by jpellerin
- resolution set to worksforme
- version set to 0.9
- status changed from assigned to closed
Closing as worksforme since I've been unable to reproduce the error. Please reopen the ticket if you can reproduce it with release 0.9 final or trunk after [70].
Sat Jul 1 12:35:30 2006: Modified by guest
Yep, fixed indeed. Thanks!
BTW, does this TRAC instance support mail sending? I CC'd myself but did not receive mail when you updated the ticket.

I believe this was fixed on the stable branch a while back -- at least I wasn't able to reproduce the error on the stable branch. But there was another similar error case on the stable branch, which I just fixed and merged to trunk. Could you update (should be r70) and give it another try?