mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
__class__ of a __class__ check worked only by chance.
This commit is contained in:
parent
75da860413
commit
4d27d9e8b6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue