diff options
| author | Łukasz Langa <lukasz@langa.pl> | 2011-04-29 16:15:41 +0200 |
|---|---|---|
| committer | Łukasz Langa <lukasz@langa.pl> | 2011-04-29 16:15:41 +0200 |
| commit | 4d27d9e8b665490b9860a71e32acad95f29f06ac (patch) | |
| tree | 94c8a472668d126e2b59077fc1d4f8ed14e29a5f | |
| parent | 75da8604135c28480484533bcc1e32dbb5757eee (diff) | |
| download | cpython-git-4d27d9e8b665490b9860a71e32acad95f29f06ac.tar.gz | |
__class__ of a __class__ check worked only by chance.
| -rw-r--r-- | Lib/test/test_cfgparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py index a712b2b396..1db92176f8 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 |
