Fixing link to issue and creating testcase that shows that it finds the line in the stderr lines
This commit is contained in:
@@ -407,3 +407,16 @@ def test_issue1073_conftest_special_objects(testdir):
|
||||
""")
|
||||
res = testdir.runpytest()
|
||||
assert res.ret == 0
|
||||
|
||||
|
||||
def test_conftest_exception_handling(testdir):
|
||||
testdir.makeconftest('''
|
||||
raise ValueError()
|
||||
''')
|
||||
testdir.makepyfile("""
|
||||
def test_some():
|
||||
pass
|
||||
""")
|
||||
res = testdir.runpytest()
|
||||
assert res.ret == 4
|
||||
assert 'raise ValueError()' in [line.strip() for line in res.errlines]
|
||||
|
||||
Reference in New Issue
Block a user