[New-bugs-announce] [issue17778] Fix test discovery for test_multiprocessing.py

Zachary Ware report at bugs.python.org
Wed Apr 17 19:01:22 CEST 2013


New submission from Zachary Ware:

I think this one only didn't work with discovery by accident: the only change necessary to make discovery pass was to make _TestPoll match all other _Test* classes by inheriting from BaseTestCase instead of unittest.TestCase.  The remainder of the changes are to eliminate test_main by converting it instead to setUpModule.  setUpModule is, I think, necessary on this one due to a failing test in WithProcessesTestLogging when the initial call to multiprocessing.get_logger().setLevel() (originally in test_main) is moved to top-level code.

----------
components: Tests
files: test_multiprocessing_discovery.diff
keywords: patch
messages: 187181
nosy: brett.cannon, ezio.melotti, zach.ware
priority: normal
severity: normal
status: open
title: Fix test discovery for test_multiprocessing.py
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file29905/test_multiprocessing_discovery.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17778>
_______________________________________


More information about the New-bugs-announce mailing list