Merge pull request #570 from nicoddemus/fix-config-init
This commit is contained in:
@@ -40,6 +40,8 @@ jobs:
|
|||||||
env: TOXENV=py36-pytestlatest
|
env: TOXENV=py36-pytestlatest
|
||||||
- python: "3.7"
|
- python: "3.7"
|
||||||
env: TOXENV=py37-pytestlatest
|
env: TOXENV=py37-pytestlatest
|
||||||
|
- python: "3.9-dev"
|
||||||
|
env: TOXENV=py39-pytestlatest
|
||||||
- python: "3.8"
|
- python: "3.8"
|
||||||
env: TOXENV=py38-pytestmaster
|
env: TOXENV=py38-pytestmaster
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
import py
|
import py
|
||||||
@@ -577,16 +576,8 @@ def test_fixture_teardown_failure(testdir):
|
|||||||
assert result.ret
|
assert result.ret
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
|
||||||
sys.version_info[:2] == (2, 7),
|
|
||||||
reason="Only available in pytest 5.0+ (Python 3 only)",
|
|
||||||
)
|
|
||||||
def test_config_initialization(testdir, monkeypatch, pytestconfig):
|
def test_config_initialization(testdir, monkeypatch, pytestconfig):
|
||||||
"""Ensure workers and master are initialized consistently. Integration test for #445"""
|
"""Ensure workers and master are initialized consistently. Integration test for #445"""
|
||||||
if not hasattr(pytestconfig, "invocation_params"):
|
|
||||||
pytest.skip(
|
|
||||||
"requires pytest >=5.1 (config has no attribute 'invocation_params')"
|
|
||||||
)
|
|
||||||
testdir.makepyfile(
|
testdir.makepyfile(
|
||||||
**{
|
**{
|
||||||
"dir_a/test_foo.py": """
|
"dir_a/test_foo.py": """
|
||||||
|
|||||||
Reference in New Issue
Block a user