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, 3 insertions, 3 deletions
diff --git a/Lib/test/test_global.py b/Lib/test/test_global.py
index 37ec67255a..9eeccf1250 100644
--- a/Lib/test/test_global.py
+++ b/Lib/test/test_global.py
@@ -24,7 +24,7 @@ def wrong1():
global a
global b
"""
- check_syntax_error(self, prog_text_1)
+ check_syntax_error(self, prog_text_1, lineno=4, offset=4)
def test2(self):
prog_text_2 = """\
@@ -32,7 +32,7 @@ def wrong2():
print(x)
global x
"""
- check_syntax_error(self, prog_text_2)
+ check_syntax_error(self, prog_text_2, lineno=3, offset=4)
def test3(self):
prog_text_3 = """\
@@ -41,7 +41,7 @@ def wrong3():
x = 2
global x
"""
- check_syntax_error(self, prog_text_3)
+ check_syntax_error(self, prog_text_3, lineno=4, offset=4)
def test4(self):
prog_text_4 = """\