Skip to content

Commit 8e915d1

Browse files
committed
take2: merge multiple fix: python < 3.12 returns ParsingError not RuntimeError; print exception
2 parents cd75cc6 + 1ee6116 commit 8e915d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ def testIniFileLoggerConfig(self):
17241724
if sys.version_info >= (3, 12, 0):
17251725
expected = (
17261726
"Error loading logging config from %(filename)s.\n\n"
1727-
" %(filename)s is invalid: Source contains parsing errors: "
1727+
" RuntimeError: %(filename)s is invalid: Source contains parsing errors: "
17281728
"'%(filename)s'\n\t[line 9]: '=foo\\n'\n\n"
17291729
"Source contains parsing errors: '%(filename)s'\n"
17301730
"\t[line 9]: '=foo\\n' Unspecified run-time error.\n" %
@@ -1740,8 +1740,6 @@ def testIniFileLoggerConfig(self):
17401740
"Raised when a configuration file does not follow legal "
17411741
"syntax.\n" % {"filename": log_config_filename})
17421742

1743-
print(output)
1744-
17451743
self.assertEqual(output, expected)
17461744
self.reset_logging()
17471745

0 commit comments

Comments
 (0)