Chromium Code Reviews| Index: tests/subprocess2_test.py |
| diff --git a/tests/subprocess2_test.py b/tests/subprocess2_test.py |
| index 917e106af63bec3739f1e0b5bbc32fb081a04ef8..a58b0f41b38b0667a979f725f04c4d3bd4e7809d 100755 |
| --- a/tests/subprocess2_test.py |
| +++ b/tests/subprocess2_test.py |
| @@ -326,6 +326,16 @@ 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) |
| + print r1 |
|
M-A Ruel
2013/04/30 18:42:40
remove the print statements.
|
| + print r2 |
| + self.assertEquals(r1, r2) |
| + |
| class S2Test(BaseTestCase): |
| # Tests that can only run in subprocess2, e.g. new functionalities. |