diff --git a/test/test_cgi.py b/test/test_cgi.py index e2f0b281..48f58441 100644 --- a/test/test_cgi.py +++ b/test/test_cgi.py @@ -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)