summaryrefslogtreecommitdiff
path: root/tests/test_html.py
diff options
context:
space:
mode:
authorConrad Ho <none@none>2015-04-14 04:14:40 +0800
committerConrad Ho <none@none>2015-04-14 04:14:40 +0800
commit0c7af8d745e18cd896b03b470fe527080413a4d7 (patch)
treed2a94cc50e48424409e1c9d8eadda5904bde0254 /tests/test_html.py
parenta39ff9d5f9431229ca6b401380539b196ec9c8dd (diff)
downloadpython-coveragepy-git-0c7af8d745e18cd896b03b470fe527080413a4d7.tar.gz
Ticket299: made it 2.6 compatible. checked 26, 27, 34
--HG-- extra : amend_source : 74805b676979a84dbbe2e158e29c4ab3b4975548
Diffstat (limited to 'tests/test_html.py')
-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):