Fix use of deprecated assertRegexpMatches method.

This commit is contained in:
Georg Brandl 2012-02-20 22:08:27 +01:00
parent 61470246d0
commit f47b20f0b0
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ from __future__ import print_function"""
os.sep, os.path.basename(test_file))
for message in debug_messages:
if "Not writing changes" in message:
self.assertRegexpMatches(message, message_regex)
self.assertRegex(message, message_regex)
break
else:
self.fail("%r not matched in %r" % (message_regex, debug_messages))