Skip to content

Commit 38809c9

Browse files
committed
Revert unittest
1 parent 70fb9a5 commit 38809c9

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Lib/test/test_configparser.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff 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-
11561130
class RawConfigParserTestCaseNonStandardDelimiters(RawConfigParserTestCase):
11571131
delimiters = (':=', '$')
11581132
comment_prefixes = ('//', '"')

0 commit comments

Comments
 (0)