Fix pypy3.6 on windows (#5828)

Fix pypy3.6 on windows
This commit is contained in:
Bruno Oliveira 2019-09-08 12:11:28 -03:00 committed by GitHub
commit 6c8bcf601c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix pypy3.6 (nightly) on windows.

View File

@ -789,7 +789,11 @@ def _py36_windowsconsoleio_workaround(stream):
See https://github.com/pytest-dev/py/issues/103 See https://github.com/pytest-dev/py/issues/103
""" """
if not sys.platform.startswith("win32") or sys.version_info[:2] < (3, 6): if (
not sys.platform.startswith("win32")
or sys.version_info[:2] < (3, 6)
or hasattr(sys, "pypy_version_info")
):
return return
# bail out if ``stream`` doesn't seem like a proper ``io`` stream (#2666) # bail out if ``stream`` doesn't seem like a proper ``io`` stream (#2666)