From 59b3693988fcc19a9f5d7aa5c31cc7de28fcf6b7 Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Fri, 2 Jun 2017 12:34:26 +0300 Subject: [PATCH] Fixed wrong if in the WindowsConsoleIO workaround --- _pytest/capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')