A module-scoped pytest fixture shares one mutable clone, so execution order decides green or red

Domain: testing · Evidence E1 — Maintainer reviewed
pytestfixture-scopetest-isolationorder-dependencepytest-randomlyregression-guard

Summary

A pytest fixture declared with `scope="module"` handed the **same mutable clone** to three sandbox tests. A mutator test wrote a probe file and ran the generato…

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons