diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-26 10:38:00 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-26 12:02:20 -0400 |
commit | acb29535845ef99b45406a2d964c77bded24564f (patch) | |
tree | 82662cc3420d88385d7c2bdca6a23cffc2c6c9fb /coverage/html.py | |
parent | 5b6c695248b7ad61c248e5feab5e71bf5233ba88 (diff) | |
download | python-coveragepy-git-acb29535845ef99b45406a2d964c77bded24564f.tar.gz |
Better tests of HTML delta generation
The old tests relied on deleting files and seeing them get recreated,
which could be misleading. The new tests track which files were opened
for writing, which is more accurate.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py index bb519254..d5edd5f7 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -364,7 +364,7 @@ class HtmlStatus(object): usable = False try: status_file = os.path.join(directory, self.STATUS_FILE) - with open(status_file, "r") as fstatus: + with open(status_file) as fstatus: status = json.load(fstatus) except (IOError, ValueError): usable = False |