Skip to content

Commit

Permalink
pythongh-99934: test_marshal.py: add more elements in test_determinis…
Browse files Browse the repository at this point in the history
…tic_sets (pythonGH-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 <alex.kanavin@gmail.com>
  • Loading branch information
kanavin authored and miss-islington committed Dec 3, 2022
1 parent 9707bf2 commit e55491c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_marshal.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def test_deterministic_sets(self):
for elements in (
"float('nan'), b'a', b'b', b'c', 'x', 'y', 'z'",
# Also test for bad interactions with backreferencing:
"('Spam', 0), ('Spam', 1), ('Spam', 2)",
"('Spam', 0), ('Spam', 1), ('Spam', 2), ('Spam', 3), ('Spam', 4), ('Spam', 5)",
):
s = f"{kind}([{elements}])"
with self.subTest(s):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct test_marsh on (32 bit) x86: test_deterministic sets was failing.

0 comments on commit e55491c

Please sign in to comment.