提交 834ab99e authored 作者: Frederic Bastien's avatar Frederic Bastien

More information in error

上级 bd0ee86a
......@@ -286,7 +286,8 @@ class TestComputeTestValue(unittest.TestCase):
# Get frame info 4 layers up
frame_info = traceback.extract_tb(tb)[-5]
# We should be in the "fx" function defined above
assert os.path.split(frame_info[0])[1] == 'test_compute_test_value.py'
expected = 'test_compute_test_value.py'
assert os.path.split(frame_info[0])[1] == expected, frame_info
assert frame_info[2] == 'fx'
finally:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论