Skip to content

Commit 02b8a83

Browse files
committed
Revert "Update del to end of test_re_evaluate_generics"
This reverts commit 2630802.
1 parent d02e635 commit 02b8a83

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Lib/test/test_annotationlib.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,11 @@ def test_fwdref_invalid_syntax(self):
19291929
def test_re_evaluate_generics(self):
19301930
global global_alias
19311931

1932+
# If we've already run this test before,
1933+
# ensure the variable is still undefined
1934+
if "global_alias" in globals():
1935+
del global_alias
1936+
19321937
class C:
19331938
x: global_alias[int]
19341939

@@ -1941,9 +1946,6 @@ class C:
19411946
global_alias = list
19421947
self.assertEqual(evaluated.evaluate(), list[int])
19431948

1944-
# If we run this test again, ensure the type is still undefined
1945-
del global_alias
1946-
19471949

19481950
class TestAnnotationLib(unittest.TestCase):
19491951
def test__all__(self):

0 commit comments

Comments
 (0)