Skip to content

Commit 82f584b

Browse files
committed
Fix test_trial_error in test_unittest
This reverts the test to the state before 04f27d4, which introduced the breaking change about addCleanup not being called properly for failed tests.
1 parent 5c2e96c commit 82f584b

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

testing/test_unittest.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -537,28 +537,24 @@ def f(_):
537537
)
538538
result.stdout.fnmatch_lines(
539539
[
540-
"test_trial_error.py::TC::test_four SKIPPED",
540+
"test_trial_error.py::TC::test_four FAILED",
541541
"test_trial_error.py::TC::test_four ERROR",
542542
"test_trial_error.py::TC::test_one FAILED",
543543
"test_trial_error.py::TC::test_three FAILED",
544-
"test_trial_error.py::TC::test_two SKIPPED",
545-
"test_trial_error.py::TC::test_two ERROR",
544+
"test_trial_error.py::TC::test_two FAILED",
546545
"*ERRORS*",
547546
"*_ ERROR at teardown of TC.test_four _*",
548-
"NOTE: Incompatible Exception Representation, displaying natively:",
549-
"*DelayedCalls*",
550-
"*_ ERROR at teardown of TC.test_two _*",
551-
"NOTE: Incompatible Exception Representation, displaying natively:",
552547
"*DelayedCalls*",
553548
"*= FAILURES =*",
554-
# "*_ TC.test_four _*",
555-
# "*NameError*crash*",
549+
"*_ TC.test_four _*",
550+
"*NameError*crash*",
556551
"*_ TC.test_one _*",
557552
"*NameError*crash*",
558553
"*_ TC.test_three _*",
559-
"NOTE: Incompatible Exception Representation, displaying natively:",
560554
"*DelayedCalls*",
561-
"*= 2 failed, 2 skipped, 2 errors in *",
555+
"*_ TC.test_two _*",
556+
"*NameError*crash*",
557+
"*= 4 failed, 1 error in *",
562558
]
563559
)
564560

0 commit comments

Comments
 (0)