[New-bugs-announce] [issue31676] Strange failure in test_cgitb
Serhiy Storchaka
report at bugs.python.org
Tue Oct 3 08:46:07 EDT 2017
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
I have found a strange failure when run the bigmem tests.
0:20:19 load avg: 1.04 [116/407/1] test_cgitb
test test_cgitb failed -- Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_cgitb.py", line 23, in test_html
raise ValueError("Hello World")
ValueError: Hello World
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_cgitb.py", line 27, in test_html
html = cgitb.html(sys.exc_info())
File "/home/serhiy/py/cpython/Lib/cgitb.py", line 117, in html
records = inspect.getinnerframes(etb, context)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 1483, in getinnerframes
frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 1445, in getframeinfo
lines, lnum = findsource(frame)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 780, in findsource
module = getmodule(object, file)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 739, in getmodule
f = getabsfile(module)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 708, in getabsfile
_filename = getsourcefile(object) or getfile(object)
File "/home/serhiy/py/cpython/Lib/inspect.py", line 693, in getsourcefile
if os.path.exists(filename):
File "/home/serhiy/py/cpython/Lib/genericpath.py", line 19, in exists
os.stat(path)
ValueError: embedded null byte
0:20:19 load avg: 1.04 [117/407/2] test_csv -- test_cgitb failed
It is not reproduced when run test_cgitb separately.
----------
messages: 303608
nosy: ezio.melotti, haypo, michael.foord, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Strange failure in test_cgitb
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31676>
_______________________________________
More information about the New-bugs-announce
mailing list