diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-12 07:58:47 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-07-12 07:58:47 -0400 |
commit | 87aaea0b8ef0d9285399a5e8082fd555a9f8af5b (patch) | |
tree | e43d34ce40d38c148bb68f774d1b011815d1c086 /test | |
parent | 4ffb8f99ca92c3c7a1c0c3eeddfff0f37fef7ed3 (diff) | |
download | python-coveragepy-87aaea0b8ef0d9285399a5e8082fd555a9f8af5b.tar.gz |
Fix this test to run on 3.1 and non-Windows platforms.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_summary.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/test_summary.py b/test/test_summary.py index c6598c6..0d7db40 100644 --- a/test/test_summary.py +++ b/test/test_summary.py @@ -133,16 +133,17 @@ class SummaryTest2(CoverageTest): repout = StringIO() cov.report(file=repout, show_missing=False) - self.assertMultiLineEqual(repout.getvalue(), textwrap.dedent("""\ + report = repout.getvalue().replace('\\', '/') + self.assertMultiLineEqual(report, textwrap.dedent("""\ Name Stmts Miss Cover ------------------------------------------------ - test\modules\pkg1\__init__ 1 0 100% - test\modules\pkg1\p1a 3 0 100% - test\modules\pkg1\p1b 3 0 100% - test\modules\pkg2\__init__ 0 0 100% - test\modules\pkg2\p2a 3 0 100% - test\modules\pkg2\p2b 3 0 100% - test\modules\usepkgs 2 0 100% + test/modules/pkg1/__init__ 1 0 100% + test/modules/pkg1/p1a 3 0 100% + test/modules/pkg1/p1b 3 0 100% + test/modules/pkg2/__init__ 0 0 100% + test/modules/pkg2/p2a 3 0 100% + test/modules/pkg2/p2b 3 0 100% + test/modules/usepkgs 2 0 100% ------------------------------------------------ TOTAL 15 0 100% """)) |