summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-03-29 20:07:05 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-03-29 20:07:05 -0400
commit0fc263c4fa78e5eeeea9a511fcfa663691b6f665 (patch)
treeba637551c8bae6c60f12f69ba63f1cd79a0a50d3 /tests/test_plugins.py
parent19f81fe15a7ea9c6c05128dd2f6b827c048f805c (diff)
downloadpython-coveragepy-0fc263c4fa78e5eeeea9a511fcfa663691b6f665.tar.gz
Clean up in plugin tests
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 8ea0a8f..0edfebe 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -333,9 +333,8 @@ class GoodPluginTest(FileTracerTest):
# quux_5.html will be omitted from the results.
assert render("quux_5.html", 3) == "[quux_5.html @ 3]"
- # In Python 2, either kind of string should be OK.
- if sys.version_info[0] == 2:
- assert render(u"uni_3.html", 2) == "[uni_3.html @ 2]"
+ # For Python 2, make sure unicode is working.
+ assert render(u"uni_3.html", 2) == "[uni_3.html @ 2]"
""")
# will try to read the actual source files, so make some
@@ -372,11 +371,10 @@ class GoodPluginTest(FileTracerTest):
self.assertNotIn("quux_5.html", cov.data.line_counts())
- if env.PY2:
- _, statements, missing, _ = cov.analysis("uni_3.html")
- self.assertEqual(statements, [1, 2, 3])
- self.assertEqual(missing, [1])
- self.assertIn("uni_3.html", cov.data.line_counts())
+ _, statements, missing, _ = cov.analysis("uni_3.html")
+ self.assertEqual(statements, [1, 2, 3])
+ self.assertEqual(missing, [1])
+ self.assertIn("uni_3.html", cov.data.line_counts())
def test_plugin2_with_branch(self):
self.make_render_and_caller()