summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-07-12 03:57:05 (GMT)
committerINADA Naoki <methane@users.noreply.github.com>2018-07-12 03:57:05 (GMT)
commit9e9b2c32a34594e901b5b9a03c561a2a2bf63ece (patch)
tree1b3a19d259b479d064b72f1b723eb14b97f63520 /Lib
parent993030aac576710a46b3dd0b4864f819d4a94145 (diff)
downloadcpython-9e9b2c32a34594e901b5b9a03c561a2a2bf63ece.zip
cpython-9e9b2c32a34594e901b5b9a03c561a2a2bf63ece.tar.gz
cpython-9e9b2c32a34594e901b5b9a03c561a2a2bf63ece.tar.bz2
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)
It was added in test_functools at 445f1b3.
Diffstat (limited to 'Lib')
-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 f9f96ba..63149d5 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -2310,7 +2310,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__':