summaryrefslogtreecommitdiff
path: root/testing/example_scripts
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2018-10-24 22:36:34 +0200
committerDaniel Hahler <git@thequod.de>2018-10-24 22:36:34 +0200
commiteee8201e4f85b5c70ac7127a67104410fba50e16 (patch)
tree995f1e2b5ce06963c18a3db7470dbe4a7a810785 /testing/example_scripts
parente690e191fd4c1635d5420e5bd323768716c53ff4 (diff)
parent9df1b037d6f057a09018ce56e5c775e7d304adda (diff)
downloadpytest-eee8201e4f85b5c70ac7127a67104410fba50e16.tar.gz
Merge remote-tracking branch 'origin/master' into merge-master
Diffstat (limited to 'testing/example_scripts')
-rw-r--r--testing/example_scripts/fixtures/fill_fixtures/test_detect_recursive_dependency_error.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/example_scripts/fixtures/fill_fixtures/test_detect_recursive_dependency_error.py b/testing/example_scripts/fixtures/fill_fixtures/test_detect_recursive_dependency_error.py
new file mode 100644
index 000000000..d1efcbb33
--- /dev/null
+++ b/testing/example_scripts/fixtures/fill_fixtures/test_detect_recursive_dependency_error.py
@@ -0,0 +1,15 @@
+import pytest
+
+
+@pytest.fixture
+def fix1(fix2):
+ return 1
+
+
+@pytest.fixture
+def fix2(fix1):
+ return 1
+
+
+def test(fix1):
+ pass