Strip invocation-scope suffix when displaying fixture lookup error

This commit is contained in:
Bruno Oliveira
2016-08-01 19:51:35 -03:00
parent 226f2795ba
commit 553dc2600f
3 changed files with 15 additions and 4 deletions

View File

@@ -417,6 +417,7 @@ class TestFillFixtures:
"*1 error*",
])
assert "INTERNAL" not in result.stdout.str()
assert 'monkeypatch:session' not in result.stdout.str()
def test_fixture_excinfo_leak(self, testdir):
# on python2 sys.excinfo would leak into fixture executions