https://github.com/python/cpython/commit/d68d5f328cc3cec969fc68be36013e3a952d58ed
commit: d68d5f328cc3cec969fc68be36013e3a952d58ed
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-11-09T09:05:30Z
summary:

[3.14] gh-161492: Fix assert in `test_str.test_compare` (GH-161493) (#161499)

(cherry picked from commit 32f1ea3f3af377963bab9e7c1195ce1e3db436b6)

Co-authored-by: Aleksandr Burlakov <[email protected]>

files:
M Lib/test/test_str.py

diff --git a/Lib/test/test_str.py b/Lib/test/test_str.py
index 3530d555fa725e..5bd67acc4bfb76 100644
--- a/Lib/test/test_str.py
+++ b/Lib/test/test_str.py
@@ -2575,7 +2575,7 @@ def test_compare(self):
                 self.assertFalse(copy1 != copy2)
 
                 self.assertTrue(copy1 <= copy2)
-                self.assertTrue(copy2 >= copy2)
+                self.assertTrue(copy1 >= copy2)
 
         self.assertTrue(ascii < ascii2)
         self.assertTrue(ascii < latin)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to