summaryrefslogtreecommitdiff
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 22:08:27 +0100
committerGeorg Brandl <georg@python.org>2012-02-20 22:08:27 +0100
commit9ba8f453df4f598c8a22d1f781d0434a2c80020f (patch)
tree83d1b44348d0aa4fc85709919b3bf3b94da37583 /Lib/lib2to3
parentdd6fd425b17137833b61912000e99ce03e8b09f1 (diff)
downloadcpython-9ba8f453df4f598c8a22d1f781d0434a2c80020f.tar.gz
Fix use of deprecated assertRegexpMatches method.
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r--Lib/lib2to3/tests/test_refactor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py
index 4b87ed6544..8bdebc1f3d 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))