pycompat: drop test involving assigning "foo" to `sys.hexversion` stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 26 Oct 2024 05:09:55 +0200
branchstable
changeset 52122 50415066cb66
parent 52121 05bb54a3ef26
child 52132 e08c878b5571
child 52136 e68fe567a780
pycompat: drop test involving assigning "foo" to `sys.hexversion` Starting with python 3.13, `sys.hexversion` refuse to be assigned non-hex value like "foo". I don't think I can blame it. It is time to drop that part of the tests.
tests/test-parseindex2.py
--- a/tests/test-parseindex2.py	Sat Oct 26 05:11:58 2024 +0200
+++ b/tests/test-parseindex2.py	Sat Oct 26 05:09:55 2024 +0200
@@ -221,7 +221,6 @@
         # Test different major-minor versions.
         self.assertversionfail(3, makehex(major + 1, minor, micro))
         self.assertversionfail(4, makehex(major, minor + 1, micro))
-        self.assertversionfail(5, "'foo'")
 
     def testbadargs(self):
         # Check that parse_index2() raises TypeError on bad arguments.