summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-16 09:40:11 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-07-16 09:40:11 (GMT)
commit0a820a203032e3b1b9413afba45acd8f79f27f81 (patch)
treeb4a75827fbdf3171902fbca43e19d4ce9a1610d2
parentbbddd667a9087f5cfb9e8f9d81fb6d2f75465ba1 (diff)
downloadcpython-0a820a203032e3b1b9413afba45acd8f79f27f81.zip
cpython-0a820a203032e3b1b9413afba45acd8f79f27f81.tar.gz
cpython-0a820a203032e3b1b9413afba45acd8f79f27f81.tar.bz2
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8296)
It was added in test_functools at 445f1b3. (cherry picked from commit 9e9b2c32a34594e901b5b9a03c561a2a2bf63ece) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
-rw-r--r--Lib/test/test_functools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py
index e325480..93f2800 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -2192,7 +2192,7 @@ class TestSingleDispatch(unittest.TestCase):
def f(*args):
pass
msg = 'f requires at least 1 positional argument'
- with self.assertRaisesRegexp(TypeError, msg):
+ with self.assertRaises(TypeError, msg=msg):
f()
if __name__ == '__main__':