unittest test_basic_report fail because negative thread id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Fix Released
|
Undecided
|
ZhiQiang Fan |
Bug Description
I'm not sure is this a bug, since all tests in gate are ok, but this problem occurs both in my notebook and pc.
OS: ubuntu 12.04
tox -epy27 install dependency sucessfully, and only fail on this test.
Ran 1132 tests in 68.032s (-0.524s)
FAILED (id=1, failures=2, skips=14)
$ tox -epy27 -- test_guru_
FAIL: unit.reports.
tags: worker-0
-------
Empty attachments:
pythonlogging
stderr
stdout
Traceback (most recent call last):
File "/home/
report_
File "/usr/lib/
raise self.failureExc
AssertionError: None is not true
After insert `print(
$ tox -epy27 -- test_guru_
FAIL: unit.reports.
tags: worker-0
-------
Empty attachments:
pythonlogging
stdout
stderr: {{{------ Thread #-1221338368 ------}}}
Traceback (most recent call last):
File "/home/
report_
File "/usr/lib/
raise self.failureExc
AssertionError: None is not true
Fix in line 86:
self.assertTrue
$ tox -epy27 -- test_guru_
py27: commands succeeded
congratulations :)
In openstack/
Changed in oslo: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
description: | updated |
Changed in oslo: | |
milestone: | none → icehouse-3 |
Changed in oslo: | |
status: | Fix Committed → Fix Released |
Changed in oslo: | |
milestone: | icehouse-3 → 2014.1 |
Tested in 64 bit OS, sys._current_ frames( ) will return a very large thread id which exceeds max value of 32bit int.