From 7698fa2cb1fa40241a233ebae82f2511eb48edd4 Mon Sep 17 00:00:00 2001 From: Edvard Rejthar Date: Wed, 25 Sep 2024 22:06:39 +0200 Subject: [PATCH] fighting test machine ghost --- tests/tests.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/tests.py b/tests/tests.py index c84ba0c..d9a23f5 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -503,8 +503,16 @@ def test_annotated(self): self.assertTrue(d[""]["test2"].update(" ")) -class TestAnnotation(TestAbstract): +class TestTagAnnotation(TestAbstract): """ Tests tag annotation. """ + # The class name could not be 'TestAnnotation', nor 'TestAnnotation2'. If so, another test on github failed with + # StopIteration / During handling of the above exception, another exception occurred: + # File "/opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/unittest/result.py", line 226, in _clean_tracebacks + # value.__traceback__ = tb + # /opt/hostedtoolcache/Python/3.12.6/x64/lib/python3.12/unittest/result.py", line 226 + # File "", line 4, in __setattr__ + # dataclasses.FrozenInstanceError: cannot assign to field '__traceback__' + # On local machine, all the tests went fine. def test_type_discovery(self): def _(compared, annotation):