File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -1127,32 +1127,6 @@ def test_defaults_keyword(self):
11271127 cf = self .newconfig (defaults = {"A" : 5.2 })
11281128 self .assertAlmostEqual (cf [self .default_section ]['a' ], 5.2 )
11291129
1130- def test_repr_and_str_representation (self ):
1131- """Test repr and str representation of RawConfigParser."""
1132- config_string = """\
1133- [Section1]
1134- key1 = value1
1135- key2 = value2
1136-
1137- [Section2]
1138- keyA = valueA
1139- keyB = valueB
1140- """
1141- cf = self .newconfig ()
1142- cf .read_string (config_string )
1143- cf .optionxform = str
1144-
1145- expected_repr = (
1146- "ConfigParser(default_section='DEFAULT', "
1147- "interpolation=None)"
1148- )
1149- self .assertEqual (repr (cf ), expected_repr )
1150- expected_str = (
1151- "{'Section1': {'key1': 'value1', 'key2': 'value2'}, "
1152- "'Section2': {'keyA': 'valueA', 'keyB': 'valueB'}}"
1153- )
1154- self .assertEqual (str (cf ), expected_str )
1155-
11561130class RawConfigParserTestCaseNonStandardDelimiters (RawConfigParserTestCase ):
11571131 delimiters = (':=' , '$' )
11581132 comment_prefixes = ('//' , '"' )
You can’t perform that action at this time.
0 commit comments