[Python-checkins] cpython (3.2): Fix use of deprecated assert_ method.

georg.brandl python-checkins at python.org
Mon Feb 20 21:41:45 CET 2012


http://hg.python.org/cpython/rev/a348a053a6b1
changeset:   75077:a348a053a6b1
branch:      3.2
user:        Georg Brandl <georg at python.org>
date:        Mon Feb 20 21:37:22 2012 +0100
summary:
  Fix use of deprecated assert_ method.

files:
  Lib/test/test_descr.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -4482,8 +4482,8 @@
             return '{' + ', '.join(sorted(kvs)) + '}'
         dict_ = {k: v for k, v in self.C.__dict__.items()}
         repr_ = repr(self.C.__dict__)
-        self.assert_(repr_.startswith('dict_proxy('))
-        self.assert_(repr_.endswith(')'))
+        self.assertTrue(repr_.startswith('dict_proxy('))
+        self.assertTrue(repr_.endswith(')'))
         self.assertEqual(sorted_dict_repr(repr_[len('dict_proxy('):-len(')')]),
                          sorted_dict_repr('{!r}'.format(dict_)))
 

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


More information about the Python-checkins mailing list