From 243fdf34f133454ca03d8af13bd994270cd0e7fa Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Tue, 24 Jul 2018 01:33:56 -0700 Subject: [PATCH] Attempt to work around a weird issue with the docs build --- ci/rtd-requirements.txt | 3 +++ pytest_trio/plugin.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ci/rtd-requirements.txt b/ci/rtd-requirements.txt index 67898ba..ea59c6b 100644 --- a/ci/rtd-requirements.txt +++ b/ci/rtd-requirements.txt @@ -2,3 +2,6 @@ sphinx >= 1.6.1 sphinx_rtd_theme sphinxcontrib-trio +# Workaround for this weird issue: +# https://travis-ci.org/python-trio/pytest-trio/jobs/407495415 +attrs >= 17.4.0 diff --git a/pytest_trio/plugin.py b/pytest_trio/plugin.py index 26a31d6..079b930 100644 --- a/pytest_trio/plugin.py +++ b/pytest_trio/plugin.py @@ -206,6 +206,9 @@ def pytest_runtest_call(item): yield +# It's intentionally impossible to use this to create a non-function-scoped +# fixture (since that would require exposing a way to pass scope= to +# pytest.fixture). def trio_fixture(func): func._force_trio_fixture = True return pytest.fixture(func)