This commit is contained in:
Florent Xicluna 2010-03-04 19:40:48 +00:00
parent 19c9b6042e
commit bab22a7c6d
1 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ class ProcessTestCase(unittest.TestCase):
newenv = os.environ.copy() newenv = os.environ.copy()
newenv["FRUIT"] = "banana" newenv["FRUIT"] = "banana"
rc = subprocess.call([sys.executable, "-c", rc = subprocess.call([sys.executable, "-c",
'import sys, os;' \ 'import sys, os;'
'sys.exit(os.getenv("FRUIT")=="banana")'], 'sys.exit(os.getenv("FRUIT")=="banana")'],
env=newenv) env=newenv)
self.assertEqual(rc, 1) self.assertEqual(rc, 1)
@ -552,7 +552,7 @@ class _SuppressCoreFiles(object):
pass pass
@unittest.skipIf(sys.platform == "win32", "POSIX specific tests") @unittest.skipIf(mswindows, "POSIX specific tests")
class POSIXProcessTestCase(unittest.TestCase): class POSIXProcessTestCase(unittest.TestCase):
def setUp(self): def setUp(self):
# Try to minimize the number of children we have so this test # 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) self.assertEqual(p.wait(), -signal.SIGTERM)
@unittest.skipUnless(sys.platform == "win32", "Windows specific tests") @unittest.skipUnless(mswindows, "Windows specific tests")
class Win32ProcessTestCase(unittest.TestCase): class Win32ProcessTestCase(unittest.TestCase):
def setUp(self): def setUp(self):
# Try to minimize the number of children we have so this test # Try to minimize the number of children we have so this test