diff --git a/_pytest/capture.py b/_pytest/capture.py index b67b5f833..3661f2691 100644 --- a/_pytest/capture.py +++ b/_pytest/capture.py @@ -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')