def test_delete_auto_scoping(): scop = Scoping() scop2 = Scoping(scoping=scop) scop.__del__() with pytest.raises(Exception): scop2.ids
def test_delete_scoping(): scop = Scoping() scop.__del__() with pytest.raises(Exception): scop.ids