From: Ɓukasz Langa Date: Fri, 29 Apr 2011 14:15:41 +0000 (+0200) Subject: __class__ of a __class__ check worked only by chance. X-Git-Tag: v3.2.1b1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d27d9e8b665490b9860a71e32acad95f29f06ac;p=thirdparty%2FPython%2Fcpython.git __class__ of a __class__ check worked only by chance. --- diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index a712b2b396e1..1db92176f853 100644 --- a/Lib/test/test_cfgparser.py +++ b/Lib/test/test_cfgparser.py @@ -993,7 +993,7 @@ class RawConfigParserTestCase(BasicTestCase): cf.add_section(123) cf.set(123, 'this is sick', True) self.assertEqual(cf.get(123, 'this is sick'), True) - if cf._dict.__class__ is configparser._default_dict: + if cf._dict is configparser._default_dict: # would not work for SortedDict; only checking for the most common # default dictionary (OrderedDict) cf.optionxform = lambda x: x