diff options
author | Tim Golden <mail@timgolden.me.uk> | 2013-11-03 14:20:23 +0000 |
---|---|---|
committer | Tim Golden <mail@timgolden.me.uk> | 2013-11-03 14:20:23 +0000 |
commit | 49667f09a72a3a33e5e0598233ce5a3d971f52e9 (patch) | |
tree | c8d0df1a0bc09bafea1e257b220e0bac1e770a25 /Lib/test | |
parent | 0b9e815d8dfab1844d8095b916e0ccb75d7bf3da (diff) | |
parent | e004175c5694804c263f0f06e7a4e3bbc6852cc4 (diff) | |
download | cpython-git-49667f09a72a3a33e5e0598233ce5a3d971f52e9.tar.gz |
Issue #10197: merge heads
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_subprocess.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 4c9f29bdb8..77f1ba3155 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -2133,13 +2133,6 @@ class Win32ProcessTestCase(BaseTestCase): def test_terminate_dead(self): self._kill_dead_process('terminate') - -# The module says: -# "NB This only works (and is only relevant) for UNIX." -# -# Actually, getoutput should work on any platform with an os.popen, but -# I'll take the comment as given, and skip this suite. -@unittest.skipUnless(os.name == 'posix', "only relevant for UNIX") class CommandTests(unittest.TestCase): def test_getoutput(self): self.assertEqual(subprocess.getoutput('echo xyzzy'), 'xyzzy') @@ -2153,8 +2146,8 @@ class CommandTests(unittest.TestCase): try: dir = tempfile.mkdtemp() name = os.path.join(dir, "foo") - - status, output = subprocess.getstatusoutput('cat ' + name) + status, output = subprocess.getstatusoutput( + ("type " if mswindows else "cat ") + name) self.assertNotEqual(status, 0) finally: if dir is not None: |