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
commitb55ef214a0addfe28e20c48a2581cddedcd80504 (patch)
tree2baf2f374975613383ed3acca56436af9ca8fcb9 /test/test_process.py
parentfd58176a98fac86645f556ce11bada43ca11c3f6 (diff)
downloadpython-coveragepy-git-b55ef214a0addfe28e20c48a2581cddedcd80504.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 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)