summaryrefslogtreecommitdiff
path: root/test/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-07-12 16:09:43 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-07-12 16:09:43 -0400
commit1e38cc4f66ef0e13335452b04c3f963fb7e04fd8 (patch)
tree8e13e5ce6ba440e77462224ec0941d4eb332dcba /test/test_process.py
parentdb9f7246ed3698f98d80f498bd99d3eaa8c21f6d (diff)
downloadpython-coveragepy-1e38cc4f66ef0e13335452b04c3f963fb7e04fd8.tar.gz
Fix this test: can't guarantee the order of stdout and stderr in the output.
Diffstat (limited to 'test/test_process.py')
-rw-r--r--test/test_process.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/test_process.py b/test/test_process.py
index 684a5de..169bd7b 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)