aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pytest-toolbox/yield-fixture.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-pytest-toolbox/yield-fixture.patch')
-rw-r--r--community/py3-pytest-toolbox/yield-fixture.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/py3-pytest-toolbox/yield-fixture.patch b/community/py3-pytest-toolbox/yield-fixture.patch
new file mode 100644
index 00000000000..0ce62b33349
--- /dev/null
+++ b/community/py3-pytest-toolbox/yield-fixture.patch
@@ -0,0 +1,40 @@
+diff --git a/pytest_toolbox/main.py b/pytest_toolbox/main.py
+index 183037b..9cd5590 100644
+--- a/pytest_toolbox/main.py
++++ b/pytest_toolbox/main.py
+@@ -56,7 +56,7 @@ def pytest_pyfunc_call(pyfuncitem):
+ return True
+
+
+-@pytest.yield_fixture
++@pytest.fixture
+ def loop():
+ """
+ Yield fixture using loop_context()
+@@ -65,7 +65,7 @@ def loop():
+ yield _loop
+
+
+-@pytest.yield_fixture
++@pytest.fixture
+ def tmpworkdir(tmpdir):
+ """
+ Create a temporary working working directory.
+@@ -180,7 +180,7 @@ class StreamLog:
+ return '< caplog: {!r}>'.format(self.log)
+
+
+-@pytest.yield_fixture
++@pytest.fixture
+ def smart_caplog():
+ """
+ Similar to pytest's "capsys" except logs are captured not stdout and stderr
+@@ -194,7 +194,7 @@ def smart_caplog():
+ stream_log.finish()
+
+
+-@pytest.yield_fixture
++@pytest.fixture
+ def print_logs():
+ """
+ fixture which causes all arq logs to display. For debugging purposes only, should always \ No newline at end of file