Mercurial > p > roundup > code
comparison test/test_admin.py @ 8455:6d6f689d3701
fix: python < 3.12 returns ParsingError not RuntimeError; print exception
RuntimeError added in 3.12. Support older configparser.ParsingError.
Supporting older version also requires different test string for the
two versions.
Also use str(exception) rather than exception.args[0] for producing
message to user. Include exception name in output.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 22 Sep 2025 13:57:52 -0400 |
| parents | 254f70dfc585 |
| children | 9c3ec0a5c7fc |
comparison
equal
deleted
inserted
replaced
| 8452:e91ff70e4563 | 8455:6d6f689d3701 |
|---|
