aboutsummaryrefslogtreecommitdiff
path: root/misc/py-pexpect/files/patch-tests_test__popen__spawn.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/py-pexpect/files/patch-tests_test__popen__spawn.py')
-rw-r--r--misc/py-pexpect/files/patch-tests_test__popen__spawn.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/py-pexpect/files/patch-tests_test__popen__spawn.py b/misc/py-pexpect/files/patch-tests_test__popen__spawn.py
new file mode 100644
index 000000000000..e95c4f38abf9
--- /dev/null
+++ b/misc/py-pexpect/files/patch-tests_test__popen__spawn.py
@@ -0,0 +1,20 @@
+--- tests/test_popen_spawn.py.orig 2020-01-17 17:08:15 UTC
++++ tests/test_popen_spawn.py
+@@ -110,13 +110,13 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase)
+
+ def test_bad_arg(self):
+ p = PopenSpawn('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):