Because the test relies that two subsequent tests try to use pytest.warns to capture the exact same warning, it is better to use testdir to ensure test execution occurs in the order we expect (which might be different with pytest-xdist or pytest-random for example)
6.4 KiB
6.4 KiB