Skip to content

Commit 436d68e

Browse files
committed
Change ietf.doc.tests.TemplateTagTest to use our own TestCase class rather than bare unittest.
- Legacy-Id: 18837
1 parent 9a73cd2 commit 436d68e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

ietf/doc/tests.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@
77
import datetime
88
import io
99
import lxml
10-
import sys
1110
import bibtexparser
1211
import mock
1312

14-
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
15-
import unittest2 as unittest
16-
else:
17-
import unittest
1813

1914
from http.cookies import SimpleCookie
2015
from pyquery import PyQuery
@@ -1346,7 +1341,7 @@ def test_add_comment(self):
13461341
self.assertEqual(len(q('form textarea[name=comment]')), 1)
13471342

13481343

1349-
class TemplateTagTest(unittest.TestCase):
1344+
class TemplateTagTest(TestCase):
13501345
def test_template_tags(self):
13511346
import doctest
13521347
from ietf.doc.templatetags import ietf_filters

0 commit comments

Comments
 (0)