diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-12 16:09:43 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-12 16:09:43 -0400 |
commit | b55ef214a0addfe28e20c48a2581cddedcd80504 (patch) | |
tree | 2baf2f374975613383ed3acca56436af9ca8fcb9 | |
parent | fd58176a98fac86645f556ce11bada43ca11c3f6 (diff) | |
download | python-coveragepy-git-b55ef214a0addfe28e20c48a2581cddedcd80504.tar.gz |
Fix this test: can't guarantee the order of stdout and stderr in the output.
-rw-r--r-- | test/test_process.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/test_process.py b/test/test_process.py index 684a5de0..169bd7bf 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -251,12 +251,9 @@ class ProcessTest(CoverageTest): """) out = self.run_command("coverage run --source=sys,xyzzy hello.py") - # This output is not in the same order it appears in real command line - # output, but this is how it appears in the combined stdout/stderr that - # run_command gives us. - self.assertMultiLineEqual(out, textwrap.dedent("""\ - Hello + self.assertTrue("Hello\n" in out) + self.assertTrue(textwrap.dedent("""\ Coverage.py warning: Module sys has no python source. Coverage.py warning: Source module xyzzy was never encountered. Coverage.py warning: No data was collected. - """)) + """) in out) |