Closed tangkong closed 3 months ago
Python 3.12 slightly changed how the built-in cprofiler behaves. Now the following raises an error:
import cProfile
p1 = cProfile.Profile()
p1.enable()
p2 = cProfile.Profile()
# previously, p1 is silently disabled here, now python raises
p1.disable()
p2.enable()
The py3.12 tests only fail on the cprofile test cases, which is consistent with this issue
Description
test_multi_backend
as needing pymongo. (its fixtures had this decorator already, but the test still tried to run 🤷 )Motivation and Context
Seen in #343 and others
How Has This Been Tested?
CI
Where Has This Been Documented?
This PR
Pre-merge checklist
docs/pre-release-notes.sh
and created a pre-release documentation page