diff options
author | Georg Brandl <georg@python.org> | 2012-02-20 21:08:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-02-20 21:08:27 (GMT) |
commit | f47b20f0b00452e00a014c6fb80b911899845e2f (patch) | |
tree | 8a57f1b08fc761f325eb048a1db04935ca2f24cc /Lib | |
parent | 61470246d086553fbd1de3c637ec17e9bb1ecb67 (diff) | |
download | cpython-f47b20f0b00452e00a014c6fb80b911899845e2f.zip cpython-f47b20f0b00452e00a014c6fb80b911899845e2f.tar.gz cpython-f47b20f0b00452e00a014c6fb80b911899845e2f.tar.bz2 |
Fix use of deprecated assertRegexpMatches method.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib2to3/tests/test_refactor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py index 4b87ed6..8bdebc1 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)) |