File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 88
99Improvements
1010------------
11+ * Clear ``force_failure`` in ``_reset()`` so that re-running a test
12+ after an ``expectThat`` failure can succeed if successful conditions are met again.
13+ (OumarCamara, #563)
1114
1215* Make ``extract_result()`` and ``DeferredNotFired`` public APIs in
1316 ``testtools.twistedsupport``. These utilities are useful for extracting
Original file line number Diff line number Diff line change @@ -307,6 +307,9 @@ def _reset(self) -> None:
307307 # __details is lazy-initialized so that a constructed-but-not-run
308308 # TestCase is safe to use with clone_test_with_new_id.
309309 self .__details : DetailsDict | None = None
310+ # force_failure is set by expectThat() on mismatch; must be
311+ # cleared so re-runs of the same test can succeed.
312+ self .force_failure : bool | None = None
310313
311314 def __eq__ (self , other : object ) -> bool :
312315 eq = getattr (unittest .TestCase , "__eq__" , None )
You can’t perform that action at this time.
0 commit comments