summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-06-30 15:46:32 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-06-30 15:46:32 (GMT)
commitc170f37d382282023171e4f304500a07cb6fcd99 (patch)
tree62ad1cf00b94e1aaa9d42878f74e4fcd85ccb54e /Lib
parent925a3225708c40c8cd58a7475c5a6d3bd89db01d (diff)
downloadcpython-c170f37d382282023171e4f304500a07cb6fcd99.zip
cpython-c170f37d382282023171e4f304500a07cb6fcd99.tar.gz
cpython-c170f37d382282023171e4f304500a07cb6fcd99.tar.bz2
#18038: Use non-deprecated assert names in tests.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_pep263.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_pep263.py b/Lib/test/test_pep263.py
index 1290bc7..324ae386 100644
--- a/Lib/test/test_pep263.py
+++ b/Lib/test/test_pep263.py
@@ -59,17 +59,17 @@ class PEP263Test(unittest.TestCase):
compile(b'# -*- coding: iso-8859-15 -*-\n', 'dummy', 'exec')
compile(b'\xef\xbb\xbf\n', 'dummy', 'exec')
compile(b'\xef\xbb\xbf# -*- coding: utf-8 -*-\n', 'dummy', 'exec')
- with self.assertRaisesRegexp(SyntaxError, 'fake'):
+ with self.assertRaisesRegex(SyntaxError, 'fake'):
compile(b'# -*- coding: fake -*-\n', 'dummy', 'exec')
- with self.assertRaisesRegexp(SyntaxError, 'iso-8859-15'):
+ with self.assertRaisesRegex(SyntaxError, 'iso-8859-15'):
compile(b'\xef\xbb\xbf# -*- coding: iso-8859-15 -*-\n',
'dummy', 'exec')
- with self.assertRaisesRegexp(SyntaxError, 'BOM'):
+ with self.assertRaisesRegex(SyntaxError, 'BOM'):
compile(b'\xef\xbb\xbf# -*- coding: iso-8859-15 -*-\n',
'dummy', 'exec')
- with self.assertRaisesRegexp(SyntaxError, 'fake'):
+ with self.assertRaisesRegex(SyntaxError, 'fake'):
compile(b'\xef\xbb\xbf# -*- coding: fake -*-\n', 'dummy', 'exec')
- with self.assertRaisesRegexp(SyntaxError, 'BOM'):
+ with self.assertRaisesRegex(SyntaxError, 'BOM'):
compile(b'\xef\xbb\xbf# -*- coding: fake -*-\n', 'dummy', 'exec')