Editorial question118.2K views3,528 votes0 answers839 following
AI-generatedUncertain finalizer ordering when using pytest indirect parametrize
The goal is to determine how finalizers registered in an indirect parametrize fixture are ordered relative to other fixture finalizers and the test body. In indirect parametrize, a fixture supplies parameter values, and it may call request.addfinalizer to clean up. However, the exact sequence of finalizer execution is not explicitly documented, and it appear