diff options
author | Georg Brandl <georg@python.org> | 2012-02-20 21:37:22 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-02-20 21:37:22 +0100 |
commit | c425a94899a10b565df060c6f943b5d8b4a85ac9 (patch) | |
tree | 3e060e569325e99abfcee5e11c0c0857153790a0 | |
parent | 242631da860fc94eafa86ff50d219cfd9dfded3e (diff) | |
download | cpython-git-c425a94899a10b565df060c6f943b5d8b4a85ac9.tar.gz |
Fix use of deprecated assert_ method.
-rw-r--r-- | 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 index 77cadc01d9..92304b4e7e 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -4482,8 +4482,8 @@ class DictProxyTests(unittest.TestCase): 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_))) |