Detect dynamic code explicitly in filter_traceback

This commit is contained in:
Bruno Oliveira
2015-09-30 17:15:53 -03:00
parent 11f100813e
commit d1e00f6e19
2 changed files with 8 additions and 4 deletions

View File

@@ -778,7 +778,7 @@ class TestTracebackCutting:
tb = py.code.Traceback(tb)
assert isinstance(tb[-1].path, str) # symptom of the py.code bug
assert filter_traceback(tb[-1])
assert not filter_traceback(tb[-1])
class TestReportInfo: