diff options
Diffstat (limited to 'Lib/test/test_platform.py')
| -rw-r--r-- | Lib/test/test_platform.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index 7e3e401..dfae4a8 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -270,9 +270,7 @@ class PlatformTest(unittest.TestCase): res = platform.libc_ver(executable) def test_popen(self): - mswindows = (sys.platform == "win32") - - if mswindows: + if support.MS_WINDOWS: command = '"{}" -c "print(\'Hello\')"'.format(sys.executable) else: command = "'{}' -c 'print(\"Hello\")'".format(sys.executable) @@ -284,7 +282,7 @@ class PlatformTest(unittest.TestCase): self.assertEqual(hello, "Hello") data = 'plop' - if mswindows: + if support.MS_WINDOWS: command = '"{}" -c "import sys; data=sys.stdin.read(); exit(len(data))"' else: command = "'{}' -c 'import sys; data=sys.stdin.read(); exit(len(data))'" |
