summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gc.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2009-03-31 16:54:10 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2009-03-31 16:54:10 (GMT)
commit2839985c7e717c103f3281abef360ff781b3ddb8 (patch)
treef4d31e53142ed01ebda1b5fe362dc4b0e557d020 /Lib/test/test_gc.py
parentc2784229b858c1cb74920681846a62797a71c244 (diff)
downloadcpython-2839985c7e717c103f3281abef360ff781b3ddb8.zip
cpython-2839985c7e717c103f3281abef360ff781b3ddb8.tar.gz
cpython-2839985c7e717c103f3281abef360ff781b3ddb8.tar.bz2
The unittest.TestCase.assertEqual() now displays the differences in lists,
tuples, dicts and sets on failure. Many new handy type and comparison specific assert* methods have been added that fail with error messages actually useful for debugging. Contributed in by Google and completed with help from mfoord and GvR at PyCon 2009 sprints. Discussion lives in http://bugs.python.org/issue2578.
Diffstat (limited to 'Lib/test/test_gc.py')
-rw-r--r--Lib/test/test_gc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py
index e9af550..5a35dec 100644
--- a/Lib/test/test_gc.py
+++ b/Lib/test/test_gc.py
@@ -244,7 +244,7 @@ class GCTests(unittest.TestCase):
# - the call to assertEqual somehow avoids building its args tuple
def test_get_count(self):
# Avoid future allocation of method object
- assertEqual = self.assertEqual
+ assertEqual = self._baseAssertEqual
gc.collect()
assertEqual(gc.get_count(), (0, 0, 0))
a = dict()