summaryrefslogtreecommitdiff
path: root/Lib/test/test_global.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-19 08:05:39 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-19 08:05:39 +0200
commitd2131b6bd33e17101ba57b4ace0b2c6e3e104b3e (patch)
tree6f259f5552b25e5c4a1b44f34a8cd56d58ec57cc /Lib/test/test_global.py
parentc3ec82eb622bc9be403a6f7f5ce7674ddd66f40c (diff)
parent5607a989a4c9523d143ae85dbf3af1f692fc8ebe (diff)
downloadcpython-d2131b6bd33e17101ba57b4ace0b2c6e3e104b3e.tar.gz
Issue #20191: Fixed a crash in resource.prlimit() when pass a sequence that
doesn't own its elements as limits.
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 = """\