diff options
Diffstat (limited to 'tests/PexpectTestCase.py')
-rw-r--r-- | tests/PexpectTestCase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PexpectTestCase.py b/tests/PexpectTestCase.py index 307437e..5d7a168 100644 --- a/tests/PexpectTestCase.py +++ b/tests/PexpectTestCase.py @@ -97,7 +97,7 @@ class PexpectTestCase(unittest.TestCase): raise AssertionError("%s was not raised" % excClass) @contextlib.contextmanager - def assertRaisesRegexp(self, excClass, pattern): + def assertRaisesRegex(self, excClass, pattern): import re try: yield |