| Index: tests/subprocess2_test.py
|
| diff --git a/tests/subprocess2_test.py b/tests/subprocess2_test.py
|
| index 917e106af63bec3739f1e0b5bbc32fb081a04ef8..9d7df5bed2f715e22e7ba77e11911e93785acc2d 100755
|
| --- a/tests/subprocess2_test.py
|
| +++ b/tests/subprocess2_test.py
|
| @@ -326,6 +326,14 @@ class RegressionTest(BaseTestCase):
|
| self._check_res(res, None, None, 0)
|
| self._run_test(fn)
|
|
|
| + def test_stderr(self):
|
| + cmd = ['expr', '1', '/', '0']
|
| + p1 = subprocess.Popen(cmd, stderr=subprocess.PIPE)
|
| + p2 = subprocess2.Popen(cmd, stderr=subprocess.PIPE)
|
| + r1 = p1.communicate()
|
| + r2 = p2.communicate(timeout=100)
|
| + self.assertEquals(r1, r2)
|
| +
|
|
|
| class S2Test(BaseTestCase):
|
| # Tests that can only run in subprocess2, e.g. new functionalities.
|
|
|