diff options
| author | Victor Stinner <vstinner@redhat.com> | 2018-06-26 00:11:06 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-26 00:11:06 (GMT) |
| commit | 937ee9e745d7ff3c2010b927903c0e2a83623324 (patch) | |
| tree | 39e60ea2d4770bde9800159f2f4e569e0fda729b /Lib/test/test_platform.py | |
| parent | fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5 (diff) | |
| download | cpython-937ee9e745d7ff3c2010b927903c0e2a83623324.zip cpython-937ee9e745d7ff3c2010b927903c0e2a83623324.tar.gz cpython-937ee9e745d7ff3c2010b927903c0e2a83623324.tar.bz2 | |
Revert "bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)" (GH-7919)
This reverts commit 8fbbdf0c3107c3052659e166f73990b466eacbb0.
Diffstat (limited to 'Lib/test/test_platform.py')
| -rw-r--r-- | Lib/test/test_platform.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index dfae4a8..7e3e401 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -270,7 +270,9 @@ class PlatformTest(unittest.TestCase): res = platform.libc_ver(executable) def test_popen(self): - if support.MS_WINDOWS: + mswindows = (sys.platform == "win32") + + if mswindows: command = '"{}" -c "print(\'Hello\')"'.format(sys.executable) else: command = "'{}' -c 'print(\"Hello\")'".format(sys.executable) @@ -282,7 +284,7 @@ class PlatformTest(unittest.TestCase): self.assertEqual(hello, "Hello") data = 'plop' - if support.MS_WINDOWS: + if mswindows: command = '"{}" -c "import sys; data=sys.stdin.read(); exit(len(data))"' else: command = "'{}' -c 'import sys; data=sys.stdin.read(); exit(len(data))'" |
