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

Bug 548164

Summary: dev-lang/python-2.7.9-r1 fails tests in test_thread.py / AssertionError: 'Traceback' not found in 'Unhandled exception in thread started by <function task at 0x7fd5b8933f50>\n'
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-04-29 17:33:58 UTC
Created attachment 402240 [details]
emerge --info

[338/398] test_thread
test test_thread failed -- Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.9-r1/work/Python-2.7.9/Lib/test/test_thread.py", line 150, in test_save_exception_state_on_error
    self.assertIn("Traceback", stderr.getvalue())
AssertionError: 'Traceback' not found in 'Unhandled exception in thread started by <function task at 0x7fd5b8933f50>\n'


emerge -pqv '=dev-lang/python-2.7.9-r1::gentoo'
[ebuild   R   ] dev-lang/python-2.7.9-r1  USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -hardened -sqlite -tk -wininst"

GCC-5.1 may be a factor (unverified) and any upgrade-to-fix solutions will be acceptable because the box in question is a VM expressly for isolating/hacking on 5.1 issues, ( to smoke out anything that needs to be stabilized before GCC 5.1 )
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-04-29 17:35:16 UTC
Created attachment 402242 [details]
build.log
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-04-29 20:19:22 UTC
A second attempt at building it the same way succeeded with the same configuration, so methinks its some sort of timing/race condition problem.

Otherwise looks unrelated to GCC.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 21:45:22 UTC
Mass closing of bugs reported against old versions of dev-lang/python.  If the problem still occurs with the current versions (i.e. newest in each visible slot), feel free to reopen.