diff options
author | Fred Drake <fdrake@acm.org> | 2001-02-12 17:23:20 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-02-12 17:23:20 (GMT) |
commit | 95b96d3941b739017f69b8ac695ca1ac25073a55 (patch) | |
tree | d2ea564c15a1b81fbca246f3b57d8ce050751787 /Lib/test/output | |
parent | d83bbbfd222d7e399fd8b2b17492c1448dc4f2a2 (diff) | |
download | cpython-95b96d3941b739017f69b8ac695ca1ac25073a55.zip cpython-95b96d3941b739017f69b8ac695ca1ac25073a55.tar.gz cpython-95b96d3941b739017f69b8ac695ca1ac25073a55.tar.bz2 |
Added options that use square brackets in their names; this ensures that
GNOME-style internationalized options can be parsed using ConfigParser
(SF bug #131635).
Converted the tests to use test_support.verify() instead of output
comparison to work.
Diffstat (limited to 'Lib/test/output')
-rw-r--r-- | Lib/test/output/test_cfgparser | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/Lib/test/output/test_cfgparser b/Lib/test/output/test_cfgparser index 8d06816..eb16536 100644 --- a/Lib/test/output/test_cfgparser +++ b/Lib/test/output/test_cfgparser @@ -1,51 +1,6 @@ test_cfgparser - Testing basic accessors... -['Commented Bar', 'Foo Bar', 'Spacey Bar'] -Commented Bar: ['foo'] -Foo Bar: ['foo'] -Spacey Bar: ['foo'] -'bar' -'bar' -'bar' -__name__ "option" properly hidden by the API. - Testing value interpolation... -'Foo' -'something with interpolation (1 step)' -'something with lots of interpolation (9 steps)' -'something with lots of interpolation (10 steps)' -Caught expected InterpolationDepthError : -Value interpolation too deeply recursive: - section: [Foo] - option : bar11 - rawval : something %(with11)s lots of interpolation (11 steps) - - -Testing for parsing errors... -Caught expected exception: File contains parsing errors: <???> - [line 2]: ' extra-spaces: splat\n' -Caught expected exception: File contains parsing errors: <???> - [line 2]: ' extra-spaces= splat\n' -Caught expected exception: File contains parsing errors: <???> - [line 2]: 'option-without-value\n' -Caught expected exception: File contains parsing errors: <???> - [line 2]: ':value-without-option-name\n' -Caught expected exception: File contains parsing errors: <???> - [line 2]: '=value-without-option-name\n' -Caught expected exception: File contains no section headers. -file: <???>, line: 1 -'No Section!\n' - +Testing parse errors... Testing query interface... -[] -Has section 'Foo'? 0 -Caught expected NoSectionError: No section: Foo -Caught expected NoSectionError: No section: foo -Caught expected NoSectionError : -No section: foo -Caught expected NoOptionError : -No option `bar' in section: foo - Testing miscellaneous error conditions... -Caught expected DuplicateSectionError: Section Foo already exists |