summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2019-02-27 22:06:18 -0800
committerGuido van Rossum <guido@python.org>2019-03-05 11:36:11 -0800
commit9f4cb2392439243c94caa76614b1330ed2357334 (patch)
tree8eb75b141345e96709b84b935874ee73ebddab7e
parent543ab7597db93cdbf3e347552675df0e3c54e9dd (diff)
downloadcpython-git-9f4cb2392439243c94caa76614b1330ed2357334.tar.gz
Fix test_parser.py
The PyST_Object header in parsermodule.c became one int larger because it contains a PyCompilerFlags struct, which grew extra space for the st_feature_version field. Took me long enough!
-rw-r--r--Lib/test/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index 0afeb322e9..5548a871c0 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -916,7 +916,7 @@ class STObjectTestCase(unittest.TestCase):
return (n + 3) & ~3
return 1 << (n - 1).bit_length()
- basesize = support.calcobjsize('Pii')
+ basesize = support.calcobjsize('Piii')
nodesize = struct.calcsize('hP3iP0h2i')
def sizeofchildren(node):
if node is None: