summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-15 17:23:55 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-15 17:23:55 (GMT)
commit47e7062f76575eb3ea07bd5e05b879225116ebd7 (patch)
tree95d58a5e85a3b25d4acb06718cab8312d140eff7 /Lib/test
parent8181646931fc2ae842b6c74d38f26fb1006b457e (diff)
downloadcpython-47e7062f76575eb3ea07bd5e05b879225116ebd7.zip
cpython-47e7062f76575eb3ea07bd5e05b879225116ebd7.tar.gz
cpython-47e7062f76575eb3ea07bd5e05b879225116ebd7.tar.bz2
Make SpawnTest.create_args() keyword-only
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_os.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 9096665..3391e1e 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -2165,7 +2165,7 @@ class PidTests(unittest.TestCase):
class SpawnTests(unittest.TestCase):
- def create_args(self, with_env=False, use_bytes=False):
+ def create_args(self, *, with_env=False, use_bytes=False):
self.exitcode = 17
filename = support.TESTFN
@@ -2201,7 +2201,7 @@ class SpawnTests(unittest.TestCase):
@unittest.skipUnless(hasattr(os, 'spawnle'), 'need os.spawnle')
def test_spawnle(self):
- args = self.create_args(True)
+ args = self.create_args(with_env=True)
exitcode = os.spawnle(os.P_WAIT, args[0], *args, self.env)
self.assertEqual(exitcode, self.exitcode)
@@ -2213,7 +2213,7 @@ class SpawnTests(unittest.TestCase):
@unittest.skipUnless(hasattr(os, 'spawnlpe'), 'need os.spawnlpe')
def test_spawnlpe(self):
- args = self.create_args(True)
+ args = self.create_args(with_env=True)
exitcode = os.spawnlpe(os.P_WAIT, args[0], *args, self.env)
self.assertEqual(exitcode, self.exitcode)
@@ -2225,7 +2225,7 @@ class SpawnTests(unittest.TestCase):
@unittest.skipUnless(hasattr(os, 'spawnve'), 'need os.spawnve')
def test_spawnve(self):
- args = self.create_args(True)
+ args = self.create_args(with_env=True)
exitcode = os.spawnve(os.P_WAIT, args[0], args, self.env)
self.assertEqual(exitcode, self.exitcode)
@@ -2237,7 +2237,7 @@ class SpawnTests(unittest.TestCase):
@unittest.skipUnless(hasattr(os, 'spawnvpe'), 'need os.spawnvpe')
def test_spawnvpe(self):
- args = self.create_args(True)
+ args = self.create_args(with_env=True)
exitcode = os.spawnvpe(os.P_WAIT, args[0], args, self.env)
self.assertEqual(exitcode, self.exitcode)