Fix for Python 4: replace unsafe PY3 with PY2

This commit is contained in:
Hugo 2019-09-05 18:06:47 +03:00
parent 8ee557f7ae
commit d049b35397
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ class TestDebuggingBreakpoints:
Test that supports breakpoint global marks on Python 3.7+ and not on
CPython 3.5, 2.7
"""
if sys.version_info.major == 3 and sys.version_info.minor >= 7:
if sys.version_info >= (3, 7):
assert SUPPORTS_BREAKPOINT_BUILTIN is True
if sys.version_info.major == 3 and sys.version_info.minor == 5:
assert SUPPORTS_BREAKPOINT_BUILTIN is False