summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_popen.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium>2015-09-09 01:01:13 (GMT)
committerMartin Panter <vadmium>2015-09-09 01:01:13 (GMT)
commitbf19d169504823c258a9aae4bf61c8df9ff5987f (patch)
treee7c2737588806aeb3e4b46a0ca1beba7d8c31065 /Lib/test/test_popen.py
parent5558d4f2f89b86bb0aab35fff01c2b51f1013f33 (diff)
downloadcpython-bf19d169504823c258a9aae4bf61c8df9ff5987f.zip
cpython-bf19d169504823c258a9aae4bf61c8df9ff5987f.tar.gz
cpython-bf19d169504823c258a9aae4bf61c8df9ff5987f.tar.bz2
Issue #23738: Document and test actual keyword parameter names
Also fix signature because os.utime(..., ns=None) is not allowed.
Diffstat (limited to 'Lib/test/test_popen.py')
-rw-r--r--Lib/test/test_popen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py
index 225e41f..116b3dd 100644
--- a/Lib/test/test_popen.py
+++ b/Lib/test/test_popen.py
@@ -57,6 +57,10 @@ class PopenTest(unittest.TestCase):
with os.popen("echo hello") as f:
self.assertEqual(list(f), ["hello\n"])
+ def test_keywords(self):
+ with os.popen(cmd="exit 0", mode="w", buffering=-1):
+ pass
+
def test_main():
support.run_unittest(PopenTest)