[Python-checkins] cpython (3.2): Fix use of deprecated assertRegexpMatches method.

georg.brandl python-checkins at python.org
Mon Feb 20 22:47:59 CET 2012


http://hg.python.org/cpython/rev/2d1166133816
changeset:   75083:2d1166133816
branch:      3.2
parent:      75081:1cbb7d8ebab1
user:        Georg Brandl <georg at python.org>
date:        Mon Feb 20 22:08:27 2012 +0100
summary:
  Fix use of deprecated assertRegexpMatches method.

files:
  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
--- a/Lib/lib2to3/tests/test_refactor.py
+++ b/Lib/lib2to3/tests/test_refactor.py
@@ -230,7 +230,7 @@
                 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))

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list