mirror of https://github.com/python/cpython.git
Added regression test for SF bug #561822: has_option() case sensitive.
This commit is contained in:
parent
c2ff9051d2
commit
309db061af
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue