]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99934: test_marshal.py: add more elements in test_deterministic_sets (GH-99935)
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sat, 3 Dec 2022 16:53:20 +0000 (17:53 +0100)
committerGitHub <noreply@github.com>
Sat, 3 Dec 2022 16:53:20 +0000 (10:53 -0600)
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.

Lib/test/test_marshal.py
Misc/NEWS.d/next/Tests/2022-12-01-18-55-18.gh-issue-99934.Ox3Fqf.rst [new file with mode: 0644]

index 54c5a324897d235be74b162ea598e1e97e937795..3d9d6d5d0aca34e522d4caae2880dc720e0344b3 100644 (file)
@@ -355,7 +355,7 @@ class BugsTestCase(unittest.TestCase):
             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):
diff --git a/Misc/NEWS.d/next/Tests/2022-12-01-18-55-18.gh-issue-99934.Ox3Fqf.rst b/Misc/NEWS.d/next/Tests/2022-12-01-18-55-18.gh-issue-99934.Ox3Fqf.rst
new file mode 100644 (file)
index 0000000..1b1287c
--- /dev/null
@@ -0,0 +1 @@
+Correct test_marsh on (32 bit) x86: test_deterministic sets was failing.