We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
del
1 parent d02e635 commit 02b8a83Copy full SHA for 02b8a83
1 file changed
Lib/test/test_annotationlib.py
@@ -1929,6 +1929,11 @@ def test_fwdref_invalid_syntax(self):
1929
def test_re_evaluate_generics(self):
1930
global global_alias
1931
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
+
1937
class C:
1938
x: global_alias[int]
1939
@@ -1941,9 +1946,6 @@ class C:
1941
1946
global_alias = list
1942
1947
self.assertEqual(evaluated.evaluate(), list[int])
1943
1948
1944
- # If we run this test again, ensure the type is still undefined
1945
- del global_alias
-
1949
1950
class TestAnnotationLib(unittest.TestCase):
1951
def test__all__(self):
0 commit comments