From acb29535845ef99b45406a2d964c77bded24564f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 26 May 2019 10:38:00 -0400 Subject: 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. --- coverage/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/html.py') 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 -- cgit v1.2.1