diff options
author | Brandt Bucher <brandtbucher@gmail.com> | 2022-08-01 18:02:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 18:02:56 (GMT) |
commit | c7e5bbaee88a71dc6e633e3cd451ed1798436382 (patch) | |
tree | bc1fd93fbb18b2745ebc1956ea5448a19f5bbdf1 /Lib/test/test_syntax.py | |
parent | a95e60db748ec6f2c19b5710c11f62e1e4d669f4 (diff) | |
download | cpython-c7e5bbaee88a71dc6e633e3cd451ed1798436382.zip cpython-c7e5bbaee88a71dc6e633e3cd451ed1798436382.tar.gz cpython-c7e5bbaee88a71dc6e633e3cd451ed1798436382.tar.bz2 |
GH-95150: Use position and exception tables for code hashing and equality (GH-95509)
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 3 |
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") |