[Python-checkins] r78661 - python/trunk/Lib/test/test_subprocess.py

florent.xicluna python-checkins at python.org
Thu Mar 4 20:40:48 CET 2010


Author: florent.xicluna
Date: Thu Mar  4 20:40:48 2010
New Revision: 78661

Log:
Cleanup.


Modified:
   python/trunk/Lib/test/test_subprocess.py

Modified: python/trunk/Lib/test/test_subprocess.py
==============================================================================
--- python/trunk/Lib/test/test_subprocess.py	(original)
+++ python/trunk/Lib/test/test_subprocess.py	Thu Mar  4 20:40:48 2010
@@ -99,9 +99,9 @@
         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 @@
             pass
 
 
- at unittest.skipIf(sys.platform == "win32", "POSIX specific tests")
+ at 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 @@
         self.assertEqual(p.wait(), -signal.SIGTERM)
 
 
- at unittest.skipUnless(sys.platform == "win32", "Windows specific tests")
+ at 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


More information about the Python-checkins mailing list