summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 21:08:27 (GMT)
committerGeorg Brandl <georg@python.org>2012-02-20 21:08:27 (GMT)
commitf47b20f0b00452e00a014c6fb80b911899845e2f (patch)
tree8a57f1b08fc761f325eb048a1db04935ca2f24cc /Lib/lib2to3/tests
parent61470246d086553fbd1de3c637ec17e9bb1ecb67 (diff)
downloadcpython-f47b20f0b00452e00a014c6fb80b911899845e2f.zip
cpython-f47b20f0b00452e00a014c6fb80b911899845e2f.tar.gz
cpython-f47b20f0b00452e00a014c6fb80b911899845e2f.tar.bz2
Fix use of deprecated assertRegexpMatches method.
Diffstat (limited to 'Lib/lib2to3/tests')
-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 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))