Mercurial > p > roundup > code
diff test/test_cgi.py @ 7838:a430339f55e6
test: map assertRegexpMatches to assertRegex for python2
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 26 Mar 2024 15:01:10 -0400 |
| parents | e90be54708e9 |
| children | 470616e64414 |
line wrap: on
line diff
--- a/test/test_cgi.py Tue Mar 26 14:51:50 2024 -0400 +++ b/test/test_cgi.py Tue Mar 26 15:01:10 2024 -0400 @@ -3080,6 +3080,10 @@ 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)
