Skip to content

Commit 7d152d2

Browse files
committed
test: map assertRegexpMatches to assertRegex for python2
1 parent 57b8bf5 commit 7d152d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_cgi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,6 +3080,10 @@ def testReadfile(self):
30803080
def testExpandfile(self):
30813081
# test for templates in subdirectories
30823082

3083+
# remove when no longer supporting python 2
3084+
if not hasattr(self, 'assertRegex'):
3085+
self.assertRegex = self.assertRegexpMatches
3086+
30833087
# make the directory
30843088
subdir = self.dirname + "/html/subdir"
30853089
os.mkdir(subdir)

0 commit comments

Comments
 (0)