Commit 4d27d9e8 authored by Łukasz Langa's avatar Łukasz Langa

__class__ of a __class__ check worked only by chance.

parent 75da8604
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment