Skip to content

Commit 610631e

Browse files
committed
Fix deprecation warning in test suite
1 parent fcb4df1 commit 610631e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _python_ver_from_python(python):
1717
assert ' ' not in python
1818
o = os.popen('''%s -c "import sys; print(sys.version)"''' % python)
1919
ver_str = o.read().strip()
20-
ver_bits = re.split(r"\.|[^\d]", ver_str, 2)[:2]
20+
ver_bits = re.split(r"\.|[^\d]", ver_str, maxsplit=2)[:2]
2121
ver = tuple(map(int, ver_bits))
2222
return ver
2323

0 commit comments

Comments
 (0)