Commits

Georg Brandl  committed 2d11661

Fix use of deprecated assertRegexpMatches method.

  • Participants
  • Parent commits 1cbb7d8
  • Branches 3.2

Comments (0)

Files changed (1)

File Lib/lib2to3/tests/test_refactor.py

                 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))