diff options
Diffstat (limited to 'tests/test_expect.py')
-rwxr-xr-x | tests/test_expect.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_expect.py b/tests/test_expect.py index 5e54d65..be6078c 100755 --- a/tests/test_expect.py +++ b/tests/test_expect.py @@ -643,13 +643,13 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase): def test_bad_arg(self): p = pexpect.spawn('cat') - with self.assertRaisesRegexp(TypeError, '.*must be one of'): + with self.assertRaisesRegex(TypeError, '.*must be one of'): p.expect(1) - with self.assertRaisesRegexp(TypeError, '.*must be one of'): + with self.assertRaisesRegex(TypeError, '.*must be one of'): p.expect([1, b'2']) - with self.assertRaisesRegexp(TypeError, '.*must be one of'): + with self.assertRaisesRegex(TypeError, '.*must be one of'): p.expect_exact(1) - with self.assertRaisesRegexp(TypeError, '.*must be one of'): + with self.assertRaisesRegex(TypeError, '.*must be one of'): p.expect_exact([1, b'2']) def test_timeout_none(self): |