Skip to content

Commit c68573b

Browse files
authored
gh-99934: test_marshal.py: add more elements in test_deterministic_sets (GH-99935)
Existing elements do produce different output on x86_64, but they do not on x86. Let's make the data longer to ensure it differs.
1 parent ee60156 commit c68573b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/test/test_marshal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def test_deterministic_sets(self):
355355
for elements in (
356356
"float('nan'), b'a', b'b', b'c', 'x', 'y', 'z'",
357357
# Also test for bad interactions with backreferencing:
358-
"('Spam', 0), ('Spam', 1), ('Spam', 2)",
358+
"('Spam', 0), ('Spam', 1), ('Spam', 2), ('Spam', 3), ('Spam', 4), ('Spam', 5)",
359359
):
360360
s = f"{kind}([{elements}])"
361361
with self.subTest(s):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Correct test_marsh on (32 bit) x86: test_deterministic sets was failing.

0 commit comments

Comments
 (0)