Skip to content

Commit

Permalink
test: map assertRegexpMatches to assertRegex for python2
Browse files Browse the repository at this point in the history
  • Loading branch information
rouilj committed Mar 26, 2024
1 parent 57b8bf5 commit 7d152d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_cgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3080,6 +3080,10 @@ def testReadfile(self):
def testExpandfile(self):
# test for templates in subdirectories

# remove when no longer supporting python 2
if not hasattr(self, 'assertRegex'):
self.assertRegex = self.assertRegexpMatches

# make the directory
subdir = self.dirname + "/html/subdir"
os.mkdir(subdir)
Expand Down

0 comments on commit 7d152d2

Please sign in to comment.