[Python-checkins] cpython (3.3): #18038: Use non-deprecated assert names in tests.

r.david.murray python-checkins at python.org
Sun Jun 30 17:51:10 CEST 2013


http://hg.python.org/cpython/rev/19bc00996e74
changeset:   84389:19bc00996e74
branch:      3.3
parent:      84386:68ff68f9a0d5
user:        R David Murray <rdmurray at bitdance.com>
date:        Sun Jun 30 11:46:32 2013 -0400
summary:
  #18038: Use non-deprecated assert names in tests.

files:
  Lib/test/test_pep263.py |  10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/Lib/test/test_pep263.py b/Lib/test/test_pep263.py
--- a/Lib/test/test_pep263.py
+++ b/Lib/test/test_pep263.py
@@ -59,17 +59,17 @@
         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')
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list