changeset 52122:50415066cb66 stable

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 26 Oct 2024 05:09:55 +0200
parents 05bb54a3ef26
children e08c878b5571 e68fe567a780
files tests/test-parseindex2.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.