Mercurial > p > roundup > code
changeset 8457:f7fadbac5856
take2: merge multiple fix: python < 3.12 returns ParsingError not RuntimeError; print exception
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 22 Sep 2025 14:12:46 -0400 |
| parents | 9f7e863fd1cd (current diff) 6d6f689d3701 (diff) |
| children | 15a92b0a9b79 |
| files | roundup/configuration.py test/test_config.py |
| diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_config.py Mon Sep 22 14:08:36 2025 -0400 +++ b/test/test_config.py Mon Sep 22 14:12:46 2025 -0400 @@ -1724,7 +1724,7 @@ if sys.version_info >= (3, 12, 0): expected = ( "Error loading logging config from %(filename)s.\n\n" - " %(filename)s is invalid: Source contains parsing errors: " + " RuntimeError: %(filename)s is invalid: Source contains parsing errors: " "'%(filename)s'\n\t[line 9]: '=foo\\n'\n\n" "Source contains parsing errors: '%(filename)s'\n" "\t[line 9]: '=foo\\n' Unspecified run-time error.\n" % @@ -1740,8 +1740,6 @@ "Raised when a configuration file does not follow legal " "syntax.\n" % {"filename": log_config_filename}) - print(output) - self.assertEqual(output, expected) self.reset_logging()
