mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Added regression test for SF bug #561822: has_option() case sensitive.
This commit is contained in:
parent
c2ff9051d2
commit
309db061af
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue