Fixed wrong if in the WindowsConsoleIO workaround

This commit is contained in:
Segev Finer 2017-06-02 12:34:26 +03:00
parent 05796be21a
commit 59b3693988
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ def _py36_windowsconsoleio_workaround():
See https://github.com/pytest-dev/py/issues/103
"""
if not sys.platform.startswith('win32') and sys.version_info[:2] >= (3, 6):
if not sys.platform.startswith('win32') or sys.version_info[:2] < (3, 6):
return
buffered = hasattr(sys.stdout.buffer, 'raw')