diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 09:11:13 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-20 09:11:13 -0400 |
commit | e88c9f7c454ecb01d26abb7354af3d3174f8d1e1 (patch) | |
tree | ab6edbd731b3d769e6e18af653d9ad2fe9c243ba | |
parent | 7e0d22fd3723ce9015c7c07505a4e60e1c81fc55 (diff) | |
download | python-coveragepy-e88c9f7c454ecb01d26abb7354af3d3174f8d1e1.tar.gz |
Remove an option on a test method we weren't using
-rw-r--r-- | tests/test_html.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index a587844..b35c7ed 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -53,21 +53,19 @@ class HtmlTestHelpers(CoverageTest): with open(filename) as f: return f.read() - def get_html_index_content(self, scrub_time_stamp=True): + def get_html_index_content(self): """Return the content of index.html. - If `scrub_time_stamp` is true, then replace the timestamp with a - placeholder so that clocks don't matter. + Timestamps are replaced with a placeholder so that clocks don't matter. """ with open("htmlcov/index.html") as f: index = f.read() - if scrub_time_stamp: - index = re.sub( - r"created at \d{4}-\d{2}-\d{2} \d{2}:\d{2}", - r"created at YYYY-MM-DD HH:MM", - index, - ) + index = re.sub( + r"created at \d{4}-\d{2}-\d{2} \d{2}:\d{2}", + r"created at YYYY-MM-DD HH:MM", + index, + ) return index |