Skip to content

Commit

Permalink
added test for pytest-dev#2920 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Puntaier committed Nov 28, 2017
1 parent 9b7e4ab commit 6843d45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions testing/test_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import absolute_import, division, print_function
import sys
import py
import pytest

Expand Down Expand Up @@ -483,8 +484,11 @@ def load(self):

monkeypatch.setattr(pkg_resources, 'iter_entry_points', my_iter)
config = testdir.parseconfig("-p", "no:mytestplugin")
plugin = config.pluginmanager.getplugin("mytestplugin")
assert plugin is None
config.pluginmanager.import_plugin("mytestplugin")
#from _pytest.config import get_config
#pm = get_config().pluginmanager
#pm.import_plugin("mytestplugin")
assert "mytestplugin" not in sys.modules


def test_cmdline_processargs_simple(testdir):
Expand Down

0 comments on commit 6843d45

Please sign in to comment.