summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Ho <devnull@localhost>2015-04-14 04:14:40 +0800
committerConrad Ho <devnull@localhost>2015-04-14 04:14:40 +0800
commite0cd06457455dc460d40be3de8c07e868a12f40b (patch)
tree61a85551d3ccea1d7772298f2cd745844f4a05a1
parent61a07dc55be8b5c4028ebafe2e603335349358e2 (diff)
downloadpython-coveragepy-e0cd06457455dc460d40be3de8c07e868a12f40b.tar.gz
Ticket299: made it 2.6 compatible. checked 26, 27, 34
-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 d9a6470..1aaf71a 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):