comparison 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
comparison
equal deleted inserted replaced
7837:e90be54708e9 7838:a430339f55e6
3078 3078
3079 3079
3080 def testExpandfile(self): 3080 def testExpandfile(self):
3081 # test for templates in subdirectories 3081 # test for templates in subdirectories
3082 3082
3083 # remove when no longer supporting python 2
3084 if not hasattr(self, 'assertRegex'):
3085 self.assertRegex = self.assertRegexpMatches
3086
3083 # make the directory 3087 # make the directory
3084 subdir = self.dirname + "/html/subdir" 3088 subdir = self.dirname + "/html/subdir"
3085 os.mkdir(subdir) 3089 os.mkdir(subdir)
3086 3090
3087 # create new files in html dir 3091 # create new files in html dir

Roundup Issue Tracker: http://roundup-tracker.org/