]> granicus.if.org Git - python/commitdiff
__class__ of a __class__ check worked only by chance.
authorŁukasz Langa <lukasz@langa.pl>
Fri, 29 Apr 2011 14:15:41 +0000 (16:15 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Fri, 29 Apr 2011 14:15:41 +0000 (16:15 +0200)
Lib/test/test_cfgparser.py

index a712b2b396e1c834aa1adac047bb23b32b639f7b..1db92176f853aa1ff8b2a5ae0ddc11ade5ad5fd9 100644 (file)
@@ -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