• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import unittest
2
3# Python 3 renamed 'assertRaisesRegexp' to 'assertRaisesRegex', and fires
4# deprecation warnings if a program uses the old name.
5if not hasattr(unittest.TestCase, "assertRaisesRegex"):
6    unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
7