]> granicus.if.org Git - python/commitdiff
Cleanup.
authorFlorent Xicluna <florent.xicluna@gmail.com>
Thu, 4 Mar 2010 19:40:48 +0000 (19:40 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Thu, 4 Mar 2010 19:40:48 +0000 (19:40 +0000)
Lib/test/test_subprocess.py

index d9b54243d1722daa06bd89323310c786d80e392d..2d44fd9edc48a0a30eb943b029d73446f55eb525 100644 (file)
@@ -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