diff options
| author | Victor Stinner <vstinner@python.org> | 2023-10-06 00:37:28 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-06 00:37:28 (GMT) |
| commit | e0c44377935de3491b2cbe1e5f87f8b336fdc922 (patch) | |
| tree | 63a5ef10c9528b0591833f443e7fe51f7c2675dd /Lib/test/test_asyncio/test_subprocess.py | |
| parent | 3c0f65ebce10d5327e07245f7cf2beb96b18c970 (diff) | |
| download | cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.zip cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.gz cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.bz2 | |
Add support.MS_WINDOWS constant (#110446)
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_subprocess.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index dc5a48d..179c8cb 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -14,8 +14,7 @@ from test import support from test.support import os_helper -MS_WINDOWS = (sys.platform == 'win32') -if MS_WINDOWS: +if support.MS_WINDOWS: import msvcrt else: from asyncio import unix_events @@ -283,7 +282,7 @@ class SubprocessMixin: rfd, wfd = os.pipe() self.addCleanup(os.close, rfd) self.addCleanup(os.close, wfd) - if MS_WINDOWS: + if support.MS_WINDOWS: handle = msvcrt.get_osfhandle(rfd) os.set_handle_inheritable(handle, True) code = textwrap.dedent(f''' |
