summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_html.py b/tests/test_html.py
index d9a6470d..1aaf71a0 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -360,7 +360,7 @@ class HtmlTest(HtmlTestHelpers, CoverageTest):
with open("htmlcov/index.html") as f:
index = f.read()
time_stamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M')
- self.assertIn("<p>Created on {}</p>".format(time_stamp), index)
+ self.assertIn("<p>Created on {time_stamp}</p>".format(time_stamp=time_stamp), index)
class HtmlStaticFileTest(CoverageTest):