diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-04 19:40:48 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-04 19:40:48 (GMT) |
commit | bab22a7c6d3c740fe839f5bcac9cee9f22fd28d3 (patch) | |
tree | cf32a9bbf282343e92916c56d3a7dd4fdb34e5f9 /Lib/test | |
parent | 19c9b6042ed6e6ceaffd242841665c6f7a3ddf8d (diff) | |
download | cpython-bab22a7c6d3c740fe839f5bcac9cee9f22fd28d3.zip cpython-bab22a7c6d3c740fe839f5bcac9cee9f22fd28d3.tar.gz cpython-bab22a7c6d3c740fe839f5bcac9cee9f22fd28d3.tar.bz2 |
Cleanup.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_subprocess.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index d9b5424..2d44fd9 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -99,9 +99,9 @@ class ProcessTestCase(unittest.TestCase): newenv = os.environ.copy() newenv["FRUIT"] = "banana" rc = subprocess.call([sys.executable, "-c", - 'import sys, os;' \ - 'sys.exit(os.getenv("FRUIT")=="banana")'], - env=newenv) + 'import sys, os;' + 'sys.exit(os.getenv("FRUIT")=="banana")'], + env=newenv) self.assertEqual(rc, 1) def test_stdin_none(self): @@ -552,7 +552,7 @@ class _SuppressCoreFiles(object): pass -@unittest.skipIf(sys.platform == "win32", "POSIX specific tests") +@unittest.skipIf(mswindows, "POSIX specific tests") class POSIXProcessTestCase(unittest.TestCase): def setUp(self): # Try to minimize the number of children we have so this test @@ -663,7 +663,7 @@ class POSIXProcessTestCase(unittest.TestCase): self.assertEqual(p.wait(), -signal.SIGTERM) -@unittest.skipUnless(sys.platform == "win32", "Windows specific tests") +@unittest.skipUnless(mswindows, "Windows specific tests") class Win32ProcessTestCase(unittest.TestCase): def setUp(self): # Try to minimize the number of children we have so this test |