File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1139,17 +1139,14 @@ def test_repr_and_str_representation(self):
11391139keyB = valueB
11401140"""
11411141 cf = self .newconfig ()
1142- cf .read_string (config_string ) # Use a left-aligned string to avoid ParsingError
1143- cf .optionxform = str # Preserve key casing
1142+ cf .read_string (config_string )
1143+ cf .optionxform = str
11441144
1145- # Test `repr` representation
11461145 expected_repr = (
11471146 "ConfigParser(default_section='DEFAULT', "
11481147 "interpolation=None)"
11491148 )
11501149 self .assertEqual (repr (cf ), expected_repr )
1151-
1152- # Test `str` representation
11531150 expected_str = (
11541151 "{'Section1': {'key1': 'value1', 'key2': 'value2'}, "
11551152 "'Section2': {'keyA': 'valueA', 'keyB': 'valueB'}}"
You can’t perform that action at this time.
0 commit comments