| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
import unittest |
| 4 |
|
| 5 |
|
| 6 |
class MyTestCase(unittest.TestCase): |
| 7 |
first_time = True |
| 8 |
|
| 9 |
def test_fail_the_first_time(self) -> None: |
| 10 |
"""Regression test for issue #12424.""" |
| 11 |
if self.first_time: |
| 12 |
type(self).first_time = False |
| 13 |
self.fail() |