summaryrefslogtreecommitdiff
path: root/tests/subprocess_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/subprocess_test.py')
-rw-r--r--tests/subprocess_test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/subprocess_test.py b/tests/subprocess_test.py
index 1f07518..d18c623 100644
--- a/tests/subprocess_test.py
+++ b/tests/subprocess_test.py
@@ -83,3 +83,13 @@ def test_patched_communicate_290():
# with AttributeError module `select` has no `poll` on Linux
# unpatched methods are removed for safety reasons in commit f63165c0e3
tests.run_isolated('subprocess_patched_communicate.py')
+
+
+def test_check_call_without_timeout_works():
+ # There was a regression that'd result in the following exception:
+ # TypeError: check_call() missing 1 required keyword-only argument: 'timeout'
+ subprocess.check_call(
+ ['ls'],
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ )