Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4710a75

Browse files
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. (cherry picked from commit c68573b) Co-authored-by: Alexander Kanavin <[email protected]>
1 parent 9707bf2 commit 4710a75

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
@@ -354,7 +354,7 @@ def test_deterministic_sets(self):
354354
for elements in (
355355
"float('nan'), b'a', b'b', b'c', 'x', 'y', 'z'",
356356
# Also test for bad interactions with backreferencing:
357-
"('Spam', 0), ('Spam', 1), ('Spam', 2)",
357+
"('Spam', 0), ('Spam', 1), ('Spam', 2), ('Spam', 3), ('Spam', 4), ('Spam', 5)",
358358
):
359359
s = f"{kind}([{elements}])"
360360
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)