File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 14
14
level an error will be raised during collection.
15
15
Thanks `@omarkohl `_ for the complete PR (`#1519 `_).
16
16
17
- * Fix (`1516 `_): ConftestImportFailure now shows the traceback
17
+ * Fix (`# 1516 `_): ConftestImportFailure now shows the traceback
18
18
19
19
**Incompatible changes **
20
20
30
30
* removed support code for python 3 < 3.3 addressing (`#1627 `_)
31
31
32
32
.. _#607 : https://github.com/pytest-dev/pytest/issues/607
33
+ .. _#1516 : https://github.com/pytest-dev/pytest/issues/1516
33
34
.. _#1519 : https://github.com/pytest-dev/pytest/pull/1519
34
35
.. _#1664 : https://github.com/pytest-dev/pytest/pull/1664
35
36
.. _#1627 : https://github.com/pytest-dev/pytest/pull/1627
Original file line number Diff line number Diff line change @@ -407,3 +407,16 @@ def test_some():
407
407
""" )
408
408
res = testdir .runpytest ()
409
409
assert res .ret == 0
410
+
411
+
412
+ def test_conftest_exception_handling (testdir ):
413
+ testdir .makeconftest ('''
414
+ raise ValueError()
415
+ ''' )
416
+ testdir .makepyfile ("""
417
+ def test_some():
418
+ pass
419
+ """ )
420
+ res = testdir .runpytest ()
421
+ assert res .ret == 4
422
+ assert 'raise ValueError()' in [line .strip () for line in res .errlines ]
You can’t perform that action at this time.
0 commit comments