From bf19d169504823c258a9aae4bf61c8df9ff5987f Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Wed, 9 Sep 2015 01:01:13 +0000 Subject: Issue #23738: Document and test actual keyword parameter names Also fix signature because os.utime(..., ns=None) is not allowed. --- Lib/test/test_popen.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/test/test_popen.py') diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py index 225e41f86b..116b3dd596 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) -- cgit v1.2.1