Skip to content

Commit 55331b5

Browse files
Use DEPTH constant instead of pytest.depth
1 parent cabd019 commit 55331b5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/conftest.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
import tests.random_circuit
66

77
SEED = 25
8-
9-
10-
def pytest_configure() -> None:
11-
pytest.depth = 1
8+
DEPTH = 1
129

1310

1411
@pytest.fixture()
@@ -35,7 +32,7 @@ def nqb(fx_rng: Generator) -> int:
3532

3633
@pytest.fixture
3734
def rand_circ(nqb, fx_rng: Generator) -> graphix.transpiler.Circuit:
38-
return tests.random_circuit.get_rand_circuit(nqb, pytest.depth, fx_rng)
35+
return tests.random_circuit.get_rand_circuit(nqb, DEPTH, fx_rng)
3936

4037

4138
@pytest.fixture

0 commit comments

Comments
 (0)