summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cfgparser.py
Commit message (Collapse)AuthorAgeFilesLines
* #5741: dont disallow double percent signs in SafeConfigParser.set() keys.Georg Brandl2009-04-121-0/+4
|
* Issue #5341: Fix a variety of spelling errors.Mark Dickinson2009-02-211-4/+4
|
* ConfigParser renaming reversal part 3: move module into place and adapt imports.Georg Brandl2008-05-251-18/+18
|
* Updated import statements to use the new `configparser` module name.Alexandre Vassalotti2008-05-141-18/+18
| | | | | | | | Updated the documentation to use the new name. Revert addition of the stub entry for the old name. Georg, I am reverting your changes since this commit should propagate to py3k.
* Issue 1781. Now ConfigParser.add_section does not let you add aFacundo Batista2008-02-231-0/+8
| | | | | DEFAULT section any more, because it duplicated sections with the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann.
* Patch #1603688: ConfigParser.SafeConfigParser now checks values thatGeorg Brandl2007-03-131-0/+12
| | | | | are set for invalid interpolation sequences that would lead to errors on reading back those values.
* Whitespace normalization.Tim Peters2007-01-301-3/+3
|
* Patch #1371075: Make ConfigParser accept optional dict typeMartin v. Löwis2006-12-031-1/+45
| | | | for ordering, sorting, etc.
* Whitespace normalization.Tim Peters2004-10-031-1/+1
|
* SF bug #997050: Document, test, & check for non-string values in ↵David Goodger2004-10-031-12/+44
| | | | ConfigParser. Moved the new string-only restriction added in rev. 1.65 to the SafeConfigParser class, leaving existing ConfigParser & RawConfigParser behavior alone, and documented the conditions under which non-string values work.
* SF bug #1017864: ConfigParser now correctly handles default keys, processing ↵David Goodger2004-10-031-0/+10
| | | | them with ``ConfigParser.optionxform`` when supplied, consistent with the handling of config file entries and runtime-set options.
* ConfigParser:Fred Drake2004-05-181-0/+21
| | | | | | - read() method returns a list of files parsed successfully - add tests, documentation (closes SF patch #677651)
* ConfigParser:Fred Drake2004-05-181-0/+31
| | | | | | | | - don't allow setting options to non-string values; raise TypeError when the value is set, instead of raising an arbitrary exception later (such as when string interpolation is performed) - add tests, documentation (closes SF bug #810843)
* ConfigParser:Fred Drake2004-05-181-4/+4
| | | | | | | | - ensure that option names in interpolations are handled by self.optionxform in the same way that other references to option names - add tests, documentation (closes SF bug #857881, patch #865455)
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-5/+5
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Add a test that InterpolationError is constructed properly and raisedFred Drake2002-12-311-2/+20
| | | | | when expected. Only applies to the ConfigParser and SafeConfigParser classes, not RawConfigParser.
* Implement a safer and more predictable interpolation approach.Fred Drake2002-10-251-1/+16
| | | | Closes SF bug #511737.
* Add tests for both raw and non-raw versions of the items() methods.Fred Drake2002-10-251-0/+26
|
* Convert to PyUnit.Fred Drake2002-10-251-293/+263
|
* Added (very) minimal tests of the RawConfigParser class.Fred Drake2002-10-251-16/+35
| | | | | Moved the write() test to near the end of the file since it screws up font-lock. ;-(
* Allow internal whitespace in keys.Fred Drake2002-09-271-0/+6
| | | | Closes SF bug #583248; backporting to r22-maint branch.
* Added regression test for SF bug #561822: has_option() case sensitive.Fred Drake2002-09-271-0/+5
|
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Whitespace normalization.Tim Peters2002-04-161-1/+1
|
* As part of fixing bug #523301, add a simple test of ConfigParser.write()Andrew M. Kuchling2002-03-081-0/+29
|
* Added tests that check getboolean() with the newly allowed values fromFred Drake2001-10-081-0/+37
| | | | SF patch #467580.
* When reading a continuation line, make sure we still use the transformedFred Drake2001-07-061-0/+7
| | | | | | | name when filling in the internal data structures, otherwise we incorrectly raise a KeyError. This fixes SF bug #432369.
* Make sure ConfigParser uses .optionxform() consistently; this affectsFred Drake2001-02-261-0/+24
| | | | | | .has_option(), .remove_option(), and .set(). This closes SF tracker #232913.
* Test section name using some strange characters, including a backslashFred Drake2001-02-141-2/+7
| | | | (SF bug #132288).
* Added options that use square brackets in their names; this ensures thatFred Drake2001-02-121-43/+49
| | | | | | | | 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.
* Add test cases for ConfigParser.remove_option() behavior. This includesFred Drake2000-12-041-0/+24
| | | | coverage to ensure bug #124324 does not re-surface.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-1/+1
|
* Remove change that had not been saved when the output was generated;Fred Drake2000-09-281-3/+0
| | | | | not terribly useful. Reported by Mark Favas <Mark.Favas@per.dem.csiro.au>.
* Regression test for ConfigParser module.Fred Drake2000-09-271-0/+144