summaryrefslogtreecommitdiff
path: root/tests/PexpectTestCase.py
diff options
context:
space:
mode:
authorRed_M <1468433+Red-M@users.noreply.github.com>2023-02-14 19:11:18 +1000
committerGitHub <noreply@github.com>2023-02-14 19:11:18 +1000
commita547f9063a15503426a4afecba817171ed5c7aaa (patch)
treea54890c055e54901f08815f554ede4c74ae5b5df /tests/PexpectTestCase.py
parent460f1e1b94b26c34011fc43a11546612f971fdb9 (diff)
parentdae602d37493bae239e0e8db5b3dabafebfd59db (diff)
downloadpexpect-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.py2
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