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 | 9d3bc3a5ffbc556e2a9308e9b9d1a8004cae2687 (patch) | |
tree | 874cb2e382e7f7eecb95a32069c7443bf1d47d4c /test/test_summary.py | |
parent | d6ab547b303722f1171e661fcddba0f84ba24a2c (diff) | |
download | python-coveragepy-git-9d3bc3a5ffbc556e2a9308e9b9d1a8004cae2687.tar.gz |
Fix this test to run on 3.1 and non-Windows platforms.
Diffstat (limited to 'test/test_summary.py')
-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 c6598c6d..0d7db402 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% """)) |