mahmoud / boltons

🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library. Nothing like Michael Bolton.
https://boltons.readthedocs.org
Other
6.53k stars 353 forks source link

Support latest Python versions #314

Open cretz opened 2 years ago

cretz commented 2 years ago

I noticed README says:

Boltons is tested against [...] CPython nightly

But I cannot find where this test occurs. There seem to be no 3.10 test runs or CPython nightly test runs. My concern is the traceback string format has changed in 3.11 so the parser may not work as is.

mahmoud commented 1 year ago

A very valid concern!

I just updated the CI to test against 3.11, but that won't help. The traceback parser is almost certainly out-of-date for newer versions, unfortunately. The tests still pass because frankly they're too simple: https://github.com/mahmoud/boltons/blob/master/tests/test_tbutils_parsed_exc.py

I'd gladly accept more tests or an updated parser. The code is pretty straightforward over here: https://github.com/mahmoud/boltons/blob/895f7c49e2737aad250e51c2d999639536054b64/boltons/tbutils.py#L689