summaryrefslogtreecommitdiff
path: root/testing/test_config.py
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2019-02-22 18:49:56 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2019-02-22 18:58:54 -0300
commita68f4fd2b9e99c82476d0e04ebcf561aeddbcb2e (patch)
treecdbbc7651cea3515085a4b4efa240cb5085f1785 /testing/test_config.py
parent5b35241470d64dc1bf3a64a2cd0c1072893eba60 (diff)
downloadpytest-a68f4fd2b9e99c82476d0e04ebcf561aeddbcb2e.tar.gz
Fix test failures after pluggy 1.8 release
pluggy now calls iter_entry_points with different arguments, and tests which mocked that call need to be updated accordingly.
Diffstat (limited to 'testing/test_config.py')
-rw-r--r--testing/test_config.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/testing/test_config.py b/testing/test_config.py
index f9f22a63e..1e29b83f1 100644
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -514,8 +514,8 @@ def test_preparse_ordering_with_setuptools(testdir, monkeypatch):
pkg_resources = pytest.importorskip("pkg_resources")
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
- def my_iter(name):
- assert name == "pytest11"
+ def my_iter(group, name=None):
+ assert group == "pytest11"
class Dist(object):
project_name = "spam"
@@ -552,8 +552,8 @@ def test_setuptools_importerror_issue1479(testdir, monkeypatch):
pkg_resources = pytest.importorskip("pkg_resources")
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", raising=False)
- def my_iter(name):
- assert name == "pytest11"
+ def my_iter(group, name=None):
+ assert group == "pytest11"
class Dist(object):
project_name = "spam"
@@ -583,8 +583,8 @@ def test_plugin_preparse_prevents_setuptools_loading(testdir, monkeypatch, block
plugin_module_placeholder = object()
- def my_iter(name):
- assert name == "pytest11"
+ def my_iter(group, name=None):
+ assert group == "pytest11"
class Dist(object):
project_name = "spam"
@@ -621,7 +621,7 @@ def test_plugin_preparse_prevents_setuptools_loading(testdir, monkeypatch, block
def test_disable_plugin_autoload(testdir, monkeypatch, parse_args, should_load):
pkg_resources = pytest.importorskip("pkg_resources")
- def my_iter(name):
+ def my_iter(group, name=None):
raise AssertionError("Should not be called")
class PseudoPlugin(object):