Skip to content

Commit cd326ef

Browse files
Use 'maxsize' instead of 'maxint' on Python 3 #295
The sys.maxint constant was removed, since there is no longer a limit to the value of integers. However, sys.maxsize can be used as an integer larger than any practical list or string index. It conforms to the implementation’s “natural” integer size and is typically the same as sys.maxint in previous releases on the same platform (assuming the same build options). Reference = http://docs.python.org/3.1/whatsnew/3.0.html#integers Signed-off-by: Abhishek Kumar <abhishek.kasyap09@gmail.com>
1 parent 9ecbb8b commit cd326ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commoncode/testcase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
test_run_temp_dir = None
5151

5252
# set to 1 to see the slow tests
53-
timing_threshold = sys.maxint
53+
timing_threshold = sys.maxsize
5454

5555
POSIX_PATH_SEP = b'/' if on_linux else '/'
5656
WIN_PATH_SEP = b'\\' if on_linux else '\\'

0 commit comments

Comments
 (0)