test_ok1/_pytest
Floris Bruynooghe a98e3cefc5 Enable re-writing of setuptools-installed plugins
Hook up the PEP 302 import hook very early in pytest startup so
that it gets installed before setuptools-installed plugins are
imported.  Also iterate over all installed plugins and mark them
for rewriting.  If an installed plugin is already imported then
a warning is issued, we can not break since that might break
existing plugins and the fallback will still be gracefull to
plain asserts.

Some existing tests are failing in this commit because of the new
warning triggered by inline pytest runs due to the hypothesis
plugin already being imported.  The tests will be fixed in the next
commit.
2016-07-13 17:29:19 +01:00
..
_code merge master into features 2016-06-22 14:39:33 +02:00
assertion Enable re-writing of setuptools-installed plugins 2016-07-13 17:29:19 +01:00
vendored_packages Fix spelling: explicitely --> explicitly 2015-12-01 01:41:47 -08:00
__init__.py merge master into features 2016-06-22 14:39:33 +02:00
_argcomplete.py Remove code related to support python <= 2.5 2015-12-16 16:16:22 -02:00
_pluggy.py Create `_pytest.vendored_packages` and _pytest._pluggy 2015-09-07 13:01:54 -03:00
cacheprovider.py Use testscollected to make xdist happy 2016-03-11 14:48:17 +06:00
capture.py Introduce pytest command as recommended entry point 2016-06-21 16:16:57 +02:00
compat.py split most fixture related code into own plugin 2016-07-09 20:36:00 +02:00
config.py Enable re-writing of setuptools-installed plugins 2016-07-13 17:29:19 +01:00
debugging.py Add tests for custom pdb class. 2016-07-11 20:07:29 -07:00
doctest.py split most fixture related code into own plugin 2016-07-09 20:36:00 +02:00
fixtures.py Add punctuation to funcarg_prefix_warning 2016-07-12 23:49:09 +02:00
freeze_support.py Move the freezing function from genscript.py to a new module freeze_support.py 2016-06-26 19:37:24 +02:00
helpconfig.py add --override-ini option to overrides ini values 2016-06-25 23:45:32 +08:00
hookspec.py Switch setuponly and setupplan options to a hook-based implementation. 2016-06-25 12:19:46 +02:00
impl - enhance ordering of tests using parametrized resources 2012-08-01 09:07:32 +02:00
junitxml.py Merge branch 'master' into merge-master 2016-05-13 19:37:41 +02:00
main.py Move setupplan and setuponly options to their respective modules. 2016-06-25 12:20:56 +02:00
mark.py Always lstrip() keyword expression 2016-04-01 13:10:05 -04:00
monkeypatch.py Replace all usages of "pytest_funcarg__" for @pytest.fixture 2016-07-11 22:21:52 -03:00
nose.py adapt to pluggy naming, rename pytest.hookspec_opts to pytest.hookspec,s ame with hookimpl_opts 2015-05-06 10:08:08 +02:00
pastebin.py Fix pastebin when captured output contains non-ascii characters 2015-12-03 20:07:18 -02:00
pytester.py Replace all usages of "pytest_funcarg__" for @pytest.fixture 2016-07-11 22:21:52 -03:00
python.py Deprecate yield tests 2016-07-11 22:21:49 -03:00
recwarn.py Moved py.code code over to py.test 2016-01-25 23:18:04 -02:00
resultlog.py Use os.path.isdir instead of os.path.exists 2015-06-17 08:08:03 -03:00
runner.py Implement --setup-show cli flag 2016-07-03 22:30:51 +02:00
setuponly.py Fix PEP-8. 2016-07-03 22:33:21 +02:00
setupplan.py Fix PEP-8. 2016-07-03 22:33:21 +02:00
skipping.py issue 1496 - xfail with condition keyword 2016-04-19 18:12:37 +01:00
terminal.py Remove deprecated cmd options 2016-06-26 19:26:04 +02:00
tmpdir.py Replace all usages of "pytest_funcarg__" for @pytest.fixture 2016-07-11 22:21:52 -03:00
unittest.py unittest.UnitTestCase: Allow __test__ for methods 2016-05-19 08:19:57 +05:30