summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cfgparser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-09-27 15:35:23 (GMT)
committerFred Drake <fdrake@acm.org>2002-09-27 15:35:23 (GMT)
commit309db061af45c9f85d9fafcbb5f39a332486906e (patch)
tree0204d317e1078662122d37ce076f480ec6a0338a /Lib/test/test_cfgparser.py
parentc2ff9051d2dace414d5ec928fa3e41edd9297992 (diff)
downloadcpython-309db061af45c9f85d9fafcbb5f39a332486906e.zip
cpython-309db061af45c9f85d9fafcbb5f39a332486906e.tar.gz
cpython-309db061af45c9f85d9fafcbb5f39a332486906e.tar.bz2
Added regression test for SF bug #561822: has_option() case sensitive.
Diffstat (limited to 'Lib/test/test_cfgparser.py')
-rw-r--r--Lib/test/test_cfgparser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py
index fae8a17..17f5ea6 100644
--- a/Lib/test/test_cfgparser.py
+++ b/Lib/test/test_cfgparser.py
@@ -97,6 +97,11 @@ def case_sensitivity():
verify(cf.options("MySection") == ["option"])
verify(cf.get("MySection", "Option") == "first line\nsecond line")
+ # SF bug #561822:
+ cf = ConfigParser.ConfigParser(defaults={"key":"value"})
+ cf.readfp(StringIO.StringIO("[section]\nnekey=nevalue\n"))
+ verify(cf.has_option("section", "Key"))
+
def boolean(src):
print "Testing interpretation of boolean Values..."