Skip to content

Commit

Permalink
Attempt to work around a weird issue with the docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Jul 25, 2018
1 parent 2a3a024 commit 243fdf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/rtd-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions pytest_trio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 243fdf3

Please sign in to comment.