Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 450760

Summary: dev-python/unittest2: tests fail with CPython when parallel build is used
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jlec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log for python2.7

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-07 20:56:14 UTC
Created attachment 334748 [details]
Build log for python2.7

It happens only with parallel build (some kind of signal switching?), and it happens only with CPython (pypy is fine).

ERROR: testHandlerReplacedButCalled (unittest2.test.test_break.TestBreak)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/portage/dev-python/unittest2-0.5.1-r200/work/unittest2-0.5.1-python2_7/lib/unittest2/test/test_break.py", line 136, in testHandlerReplacedButCalled
    os.kill(pid, signal.SIGINT)
  File "/tmp/portage/dev-python/unittest2-0.5.1-r200/work/unittest2-0.5.1-python2_7/lib/unittest2/test/test_break.py", line 131, in new_handler
    handler(frame, signum)
  File "/tmp/portage/dev-python/unittest2-0.5.1-r200/work/unittest2-0.5.1-python2_7/lib/unittest2/signals.py", line 19, in __call__
    self.default_handler(signum, frame)
TypeError: 'int' object is not callable
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-11-23 09:12:21 UTC
Parallel build isn't supported anymore