summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-01 18:33:49 (GMT)
committerGitHub <noreply@github.com>2022-08-01 18:33:49 (GMT)
commit7baca3c05e16d1faeb8c77f07706b84677d97a3d (patch)
tree345cd1252a782ae2e44522c0a84c2fb4914d8d04 /Lib/test/test_syntax.py
parent76d83b1dfe4c7be04f51bbdb01f3b82df83f8958 (diff)
downloadcpython-7baca3c05e16d1faeb8c77f07706b84677d97a3d.zip
cpython-7baca3c05e16d1faeb8c77f07706b84677d97a3d.tar.gz
cpython-7baca3c05e16d1faeb8c77f07706b84677d97a3d.tar.bz2
GH-95150: Use position and exception tables for code hashing and equality (GH-95509)
(cherry picked from commit c7e5bbaee88a71dc6e633e3cd451ed1798436382) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index b22a96b..ae10669 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -2012,7 +2012,8 @@ def fib(n):
a, b = 0, 1
"""
try:
- self.assertEqual(compile(s1, '<string>', 'exec'), compile(s2, '<string>', 'exec'))
+ compile(s1, '<string>', 'exec')
+ compile(s2, '<string>', 'exec')
except SyntaxError:
self.fail("Indented statement over multiple lines is valid")