diff options
author | Stephen Finucane <stephen@that.guru> | 2017-10-26 16:49:44 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-12-18 20:10:18 +0000 |
commit | e243e827236467b67b057b83131248ef1742aacb (patch) | |
tree | f076b6d7146702d301fd946e93d771711d6e2d0f /tests/conftest.py | |
parent | 41c19ddf91018e2b9a8c0001a24a78f3ecb893be (diff) | |
download | sphinx-git-e243e827236467b67b057b83131248ef1742aacb.tar.gz |
tests: Ignore tests using 'collect_ignore'
Per the pytest docs [1], this is the preferred way to ignore tests. This
necessitates removing the 'test-async' target as it no longer makes any
sense.
[1] https://docs.pytest.org/en/latest/example/pythoncollection.html
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 28dbd6ed4..c9719bf80 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,12 +8,17 @@ """ import os +import sys import pytest from sphinx.testing.path import path pytest_plugins = 'sphinx.testing.fixtures' +# Disable Python version-specific +if sys.version_info < (3, 5): + collect_ignore = ['py35'] + @pytest.fixture(scope='session') def rootdir(): |