Index: tests/subprocess2_test.py |
diff --git a/tests/subprocess2_test.py b/tests/subprocess2_test.py |
index 467d6fb4a5ac5bbf22ba71295dd289325f976330..d9321797b0398396813184601aaed800198710d4 100755 |
--- a/tests/subprocess2_test.py |
+++ b/tests/subprocess2_test.py |
@@ -400,6 +400,16 @@ class S2Test(BaseTestCase): |
self._check_res(res, None, None, 10) |
self._run_test(fn) |
+ def test_stdin_empty(self): |
+ def fn(c, e, un): |
+ stdin = '' |
+ res = subprocess2.communicate( |
+ e + ['--read'], |
+ stdin=stdin, |
+ universal_newlines=un) |
+ self._check_res(res, None, None, 0) |
+ self._run_test(fn) |
+ |
def test_stdin_void(self): |
res = subprocess2.communicate(self.exe + ['--read'], stdin=VOID) |
self._check_res(res, None, None, 0) |