homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter
Date 2015年11月18日.07:13:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447830828.22.0.981390741581.issue25654@psf.upfronthosting.co.za>
In-reply-to
Content
Running the test suite with -Werror enabled causes test_multiprocessing_spawn to print out lots of unhandled errors from the garbage collector, and one of these causes a test failure. It looks like there are lots of files that should be explicitly closed rather than leaving them for the garbage collector.
Also, one error occurred _after_ the test command had exiting. That can’t be a good thing, though I have never used the multiprocessing module so maybe this is unavoidable.
$ ./python -Werror -m unittest -v test.test_multiprocessing_spawn
. . .
======================================================================
FAIL: test_sys_exit (test.test_multiprocessing_spawn.WithProcessesTestSubclassingProcess)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/media/disk/home/proj/python/cpython/Lib/test/_test_multiprocessing.py", line 483, in test_sys_exit
 self.assertEqual(f.read().rstrip(), str(reason))
AssertionError: "[1, 2, 3]\nException ignored in: <_io.Fi[136 chars]-8'>" != '[1, 2, 3]'
- [1, 2, 3]
? -
+ [1, 2, 3]- Exception ignored in: <_io.FileIO name='/dev/null' mode='rb' closefd=True>
- ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='r' encoding='UTF-8'>
----------------------------------------------------------------------
Ran 265 tests in 151.904s
FAILED (failures=1, skipped=15)
[Exit 1]
$ Exception ignored in: <_io.FileIO name='/dev/null' mode='rb' closefd=True>
ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='r' encoding='UTF-8'>
History
Date User Action Args
2015年11月18日 07:13:48martin.pantersetrecipients: + martin.panter
2015年11月18日 07:13:48martin.pantersetmessageid: <1447830828.22.0.981390741581.issue25654@psf.upfronthosting.co.za>
2015年11月18日 07:13:48martin.panterlinkissue25654 messages
2015年11月18日 07:13:47martin.pantercreate

AltStyle によって変換されたページ (->オリジナル) /