summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_scope.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py
index 41678b5..26ce042 100644
--- a/Lib/test/test_scope.py
+++ b/Lib/test/test_scope.py
@@ -743,6 +743,10 @@ class ScopeTests(unittest.TestCase):
del tester
self.assertIsNone(ref())
+ def test__Class__Global(self):
+ s = "class X:\n global __class__\n def f(self): super()"
+ self.assertRaises(SyntaxError, exec, s)
+
def test_main():
run_unittest(ScopeTests)