Message110656
I created a patch to workaround this crash. But I saw another problamatic phenomenon "Error without exception set".
I confirmed PyErr_Occurred() returns TRUE when leaving file_close() on error, but I gave up.
test_close_open_print_buffered (__main__.FileThreadingTests) ... close failed in
file object destructor:
IOError: [Errno 0] Error
Exception in thread Thread-1:
Traceback (most recent call last):
File "e:\python-dev\release26-maint\lib\threading.py", line 532, in __bootstra
p_inner
self.run()
File "e:\python-dev\release26-maint\lib\threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "test_custom.py", line 94, in worker
f()
File "test_custom.py", line 88, in <lambda>
lambda: self._close_and_reopen_file(),
File "test_custom.py", line 54, in _close_and_reopen_file
self._close_file()
File "test_custom.py", line 49, in _close_file
self.f.close()
SystemError: error return without exception set
Qclose failed in file object destructor:
IOError: [Errno 0] Error
Exception in thread Thread-4:
Traceback (most recent call last):
File "e:\python-dev\release26-maint\lib\threading.py", line 532, in __bootstra
p_inner
self.run()
File "e:\python-dev\release26-maint\lib\threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "test_custom.py", line 94, in worker
f()
File "test_custom.py", line 88, in <lambda>
lambda: self._close_and_reopen_file(),
File "test_custom.py", line 54, in _close_and_reopen_file
self._close_file()
File "test_custom.py", line 49, in _close_file
self.f.close()
SystemError: error return without exception set
4271 88.3166 ok
----------------------------------------------------------------------
Ran 1 test in 6.579s
OK |
|
Date |
User |
Action |
Args |
2010-07-18 15:31:33 | ocean-city | set | recipients:
+ ocean-city |
2010-07-18 15:31:33 | ocean-city | set | messageid: <1279467093.07.0.373170925616.issue9295@psf.upfronthosting.co.za> |
2010-07-18 15:31:31 | ocean-city | link | issue9295 messages |
2010-07-18 15:31:31 | ocean-city | create | |
|