ERP5TypeTestSuite: don't use sys.maxint for python3 compatibility
Showing
-
Owner
Or we can use
sys.maxsize
that exists in Py2 as well.Python 2.7.18 (default, Mar 31 2024, 21:29:18) [GCC 8.5.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import sys >>> sys.maxint 9223372036854775807 >>> sys.maxsize 9223372036854775807
Python 3.9.18 (main, Dec 8 2023, 11:53:14) [GCC 8.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.maxsize 9223372036854775807 >>> 2**64 18446744073709551616
-
Owner
nice, thanks I did not know. I replaced this one and another one from an old commit.
Please register or sign in to comment