diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-08-17 09:42:45 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-08-17 09:42:45 -0400 |
commit | 9e122f315a3f1c27aed107a8c8035b7dc9aa29bd (patch) | |
tree | 3736c81d671601a5fb818af6e65b70c98245e55e | |
parent | 13782a65a275b6f57a25af1fff235bfa7bdd85b7 (diff) | |
download | python-coveragepy-9e122f315a3f1c27aed107a8c8035b7dc9aa29bd.tar.gz |
Cleanup
-rw-r--r-- | coverage/html.py | 2 | ||||
-rw-r--r-- | test/test_arcs.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/coverage/html.py b/coverage/html.py index be6ff08..4814c94 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -219,7 +219,7 @@ class HtmlReporter(Reporter): totals = sum([f['nums'] for f in files]) self.write_html( - os.path.join(self.directory, "index.html"), + os.path.join(self.directory, "index.html"), index_tmpl.render(locals()) ) diff --git a/test/test_arcs.py b/test/test_arcs.py index 937c2e7..ce55004 100644 --- a/test/test_arcs.py +++ b/test/test_arcs.py @@ -149,11 +149,11 @@ if sys.version_info >= (2, 6): def test_with(self): self.check_coverage("""\ - def example(): + def example(): with open("test", "w") as f: # exit - f.write("") - return 1 - + f.write("") + return 1 + example() """, arcz=".1 .2 23 34 4. 16 6." |