Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450760 - dev-python/unittest2: tests fail with CPython when parallel build is used
Summary: dev-python/unittest2: tests fail with CPython when parallel build is used
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-07 20:56 UTC by Michał Górny
Modified: 2015-11-23 09:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log for python2.7 (build-python2.7.log,9.30 KB, text/plain)
2013-01-07 20:56 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
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