Skip to content

Commit

Permalink
Allow pytest versions above 3.3.*
Browse files Browse the repository at this point in the history
pytest-dev/pytest#3074 is resolved as of 3.4.0.
  • Loading branch information
elliterate committed Jan 31, 2018
1 parent 29e81c3 commit 58211d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion capybara/tests/collector.py
@@ -1,6 +1,12 @@
import py.path
from _pytest.config import Config, PytestPluginManager, default_plugins
from _pytest.main import FSCollector

try:
# pytest >= 3.4
from _pytest.nodes import FSCollector
except ImportError:
# pytest < 3.4
from _pytest.main import FSCollector


class GraftedSubSession(FSCollector):
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -11,8 +11,7 @@
"flaky",
"flask",
"py",
# See: https://github.com/pytest-dev/pytest/issues/3074
"pytest >= 3, < 3.3",
"pytest ~= 3.0, != 3.3.*",
"werkzeug"]
if sys.version_info < (3, 3):
driver_verification_tests_require.append("mock")
Expand Down

0 comments on commit 58211d9

Please sign in to comment.