ionelmc / python-lazy-object-proxy

A fast and thorough lazy object proxy.
BSD 2-Clause "Simplified" License
247 stars 36 forks source link

tests:async: Fix Python3.12 deprecation warning #78

Closed slyon closed 10 months ago

slyon commented 11 months ago

Using the old signature to throw(), Python3.12 will complain with the following DeprecationWarning:

FAILED tests/test_async_py3.py::test_func_10[normal-cext] - DeprecationWarning: the (type, exc, tb) signature of throw() is deprecated, use the single-arg signature instead.

See: https://docs.python.org/3/reference/expressions.html#generator.throw

slyon commented 11 months ago

This warning should probably be visible in #76

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (c56c68b) 94.84% compared to head (85893fb) 94.51%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #78 +/- ## ========================================== - Coverage 94.84% 94.51% -0.33% ========================================== Files 9 9 Lines 3374 3374 Branches 566 566 ========================================== - Hits 3200 3189 -11 - Misses 115 124 +9 - Partials 59 61 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ionelmc commented 10 months ago

Whoops. Already done this with a bunch of other changes.