From b55ef214a0addfe28e20c48a2581cddedcd80504 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 12 Jul 2010 16:09:43 -0400 Subject: Fix this test: can't guarantee the order of stdout and stderr in the output. --- test/test_process.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'test') 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) -- cgit v1.2.1