diff options
-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 be6ff084..4814c943 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 937c2e79..ce550042 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." |