diff options
author | Red_M <1468433+Red-M@users.noreply.github.com> | 2023-02-14 19:11:18 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 19:11:18 +1000 |
commit | a547f9063a15503426a4afecba817171ed5c7aaa (patch) | |
tree | a54890c055e54901f08815f554ede4c74ae5b5df /tests/PexpectTestCase.py | |
parent | 460f1e1b94b26c34011fc43a11546612f971fdb9 (diff) | |
parent | dae602d37493bae239e0e8db5b3dabafebfd59db (diff) | |
download | pexpect-a547f9063a15503426a4afecba817171ed5c7aaa.tar.gz |
Merge pull request #737 from swt2c/assertRaisesRegexp
tests: Replace assertRaisesRegexp with assertRaisesRegex
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 |