From c5e078c4374dc019966fd023d6ec296ac478d169 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 15 Aug 2020 23:50:31 +0100 Subject: [PATCH] Revert 2to3 modification Use sys.maxint still for Python 2 --- Examples/test-suite/python/primitive_types_runme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/test-suite/python/primitive_types_runme.py b/Examples/test-suite/python/primitive_types_runme.py index f550fc2ab..7ed4b52d1 100644 --- a/Examples/test-suite/python/primitive_types_runme.py +++ b/Examples/test-suite/python/primitive_types_runme.py @@ -472,7 +472,7 @@ maxllong = overllong - 1 maxullong = 2 * maxllong + 1 # Make sure Python 2's sys.maxint is the same as the maxlong we calculated -if sys.version_info[0] <= 2 and maxlong != sys.maxsize: +if sys.version_info[0] <= 2 and maxlong != sys.maxint: raise RuntimeError("sys.maxint is not the maximum value of a signed long") def checkType(t, e, val, delta):