We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0873140 commit 151473cCopy full SHA for 151473c
Lib/test/test_configparser.py
@@ -1739,7 +1739,7 @@ def test_combine_error_linear_complexity(self):
1739
p.read_string(s)
1740
errlines = cm.exception.message.splitlines()
1741
self.assertEqual(len(errlines), n + 1)
1742
- self.assertStartsWith(errlines[0], "Source contains parsing errors: ")
+ self.assertTrue(errlines[0].startswith("Source contains parsing errors: "))
1743
self.assertEqual(errlines[42], f"\t[line {43:2d}]: {err_line!r}")
1744
1745
def test_nosectionerror(self):
0 commit comments