Mercurial > p > roundup > code
diff test/test_config.py @ 8570:16e8bacb8f90
test: strftime formats; Runtime v Parsing error config.ini windows python
strftime formats like "%2d" are not supported by windows python.
So limit testing to non-win32 platform.
In tests RuntimeError (not ParsingError) was returned for an invalid
config.ini parse error with 3.12 and newer. Windows Python 3.11.4
returns RuntimeError as well. Changed guard that chooses RuntimeError
to 3.11.4 or newer.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 13 Apr 2026 13:28:58 -0400 |
| parents | f7fadbac5856 |
| children |
line wrap: on
line diff
--- a/test/test_config.py Mon Apr 13 12:55:03 2026 -0400 +++ b/test/test_config.py Mon Apr 13 13:28:58 2026 -0400 @@ -1721,7 +1721,7 @@ output = cm.exception.args[0].replace(r'\\','\\') - if sys.version_info >= (3, 12, 0): + if sys.version_info >= (3, 11, 4): expected = ( "Error loading logging config from %(filename)s.\n\n" " RuntimeError: %(filename)s is invalid: Source contains parsing errors: " @@ -1731,7 +1731,6 @@ {"filename": log_config_filename}) else: # 3.7 <= x < 3.12.0 - expected = ( "Error loading logging config from %(filename)s.\n\n" " ParsingError: Source contains parsing errors: "
