Skip to content

Commit cd483f6

Browse files
committed
Fix test_sys, it encoded the struct definition.
This is really nothing more than a change test, it needs to match the C struct when no level23 mappings will be allocated. An empty char[] does not consume any C sizeof() space whereas the previous `char[1]` consumed one alignment size worth, even when unused.
1 parent 630a26a commit cd483f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_sys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ class C(object): pass
11971197
# EncodingMap
11981198
import codecs, encodings.iso8859_3
11991199
x = codecs.charmap_build(encodings.iso8859_3.decoding_table)
1200-
check(x, size('32B2iB'))
1200+
check(x, size('32B2i'))
12011201
# enumerate
12021202
check(enumerate([]), size('n3P'))
12031203
# reverse

0 commit comments

Comments
 (0)