summaryrefslogtreecommitdiff
path: root/Lib/test/test_global.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_global.py')
-rw-r--r--Lib/test/test_global.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_global.py b/Lib/test/test_global.py
index c60d0c7b29..b41b7d4cc8 100644
--- a/Lib/test/test_global.py
+++ b/Lib/test/test_global.py
@@ -37,3 +37,9 @@ def wrong3():
global x
"""
compile_and_catch_warning(prog_text_3)
+
+prog_text_4 = """
+global x
+x = 2
+"""
+compile_and_catch_warning(prog_text_4)