We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 333e9d5 + 9d7b919 commit 6c8bcf6Copy full SHA for 6c8bcf6
changelog/5807.bugfix.rst
@@ -0,0 +1 @@
1
+Fix pypy3.6 (nightly) on windows.
src/_pytest/capture.py
@@ -789,7 +789,11 @@ def _py36_windowsconsoleio_workaround(stream):
789
790
See https://github.com/pytest-dev/py/issues/103
791
"""
792
- if not sys.platform.startswith("win32") or sys.version_info[:2] < (3, 6):
+ if (
793
+ not sys.platform.startswith("win32")
794
+ or sys.version_info[:2] < (3, 6)
795
+ or hasattr(sys, "pypy_version_info")
796
+ ):
797
return
798
799
# bail out if ``stream`` doesn't seem like a proper ``io`` stream (#2666)
0 commit comments