From: Georg Brandl Date: Mon, 20 Feb 2012 21:08:27 +0000 (+0100) Subject: Fix use of deprecated assertRegexpMatches method. X-Git-Tag: v3.2.3rc1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f47b20f0b00452e00a014c6fb80b911899845e2f;p=thirdparty%2FPython%2Fcpython.git Fix use of deprecated assertRegexpMatches method. --- diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py index 4b87ed65442a..8bdebc1f3da2 100644 --- a/Lib/lib2to3/tests/test_refactor.py +++ b/Lib/lib2to3/tests/test_refactor.py @@ -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))