test_ok2/_pytest
Michael Birtwell a3bda59a30 collection: Prevent non-function callables from being collected
Fixes issue 331
previously to this change the collection code would issue a warning for
when ever it encountered a variable that looked like a test but wasn't a
function saying that it wouldn't collect it because it wasn't a function.
This fixes the logic so that if that warning is issued it really isn't
collected.
However previously special cases existed to support tests that were
created using functools.wraps and functools.partial. So the condition for
issuing that warning has been updated to take that in to account

Also try the old way of detecting functions just for proper integration
with mock.path in python 2.7 the get_real_func returned the unbound method
2015-10-12 22:23:18 +01:00
..
assertion #877 - reencoding causes typeerrors on python2 2015-09-19 00:30:01 +02:00
vendored_packages Vendor pluggy-0.3.1 2015-09-27 16:04:29 -03:00
__init__.py start 2.8.3 development 2015-10-07 17:56:05 +02:00
_argcomplete.py complete_dotted: fix for #361, filecompleter on dot files had differing behaviour from bash 2013-10-01 16:33:15 +02:00
_pluggy.py Create `_pytest.vendored_packages` and _pytest._pluggy 2015-09-07 13:01:54 -03:00
cacheprovider.py fix docstring for cache fixture regarding ``/`` on keys 2015-09-30 00:27:52 -03:00
capture.py Don't hardcode 'std' for captured stdout/stderr. 2015-09-22 20:29:16 +02:00
config.py Add missing nodeid on pytest_logwarning call in addhook. 2015-09-28 20:23:54 -04:00
doctest.py Fix problems when mixing autouse fixtures and doctest modules 2015-10-03 16:07:14 -03:00
genscript.py revert setuptools_scm addition introduced with f22d14b105 2015-09-17 12:58:04 +02:00
helpconfig.py Show known environment variables in py.test --help 2015-09-28 18:34:16 -03:00
hookspec.py Merge pull request #974 from nicoddemus/addoption-conftest 2015-09-21 11:28:31 +01:00
impl - enhance ordering of tests using parametrized resources 2012-08-01 09:07:32 +02:00
junitxml.py Fix xml generation when used with pytest-xdist 2015-09-26 03:21:24 -03:00
main.py restrucure pytest.main.wrap_session to allow for non-testrun wraps 2015-09-14 18:34:29 +02:00
mark.py Issue #751 - fix. 2015-07-25 15:38:27 +02:00
monkeypatch.py Merge pull request #1015 from hpk42/cache-integration 2015-09-16 21:46:46 +02: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 Merge branch 'pytest-2.7' 2015-07-23 22:35:51 -03:00
pdb.py Fix flakes 2015-07-18 18:23:17 -03:00
pytester.py - fix a flaky test on py35-xdist by calling 2015-09-29 13:10:59 +02:00
python.py collection: Prevent non-function callables from being collected 2015-10-12 22:23:18 +01:00
recwarn.py `deprecated_call` detects pending warnings again 2015-09-28 12:11:52 -04:00
resultlog.py Use os.path.isdir instead of os.path.exists 2015-06-17 08:08:03 -03:00
runner.py Don't hardcode 'std' for captured stdout/stderr. 2015-09-22 20:29:16 +02:00
skipping.py Merge branch 'pytest-2.7' 2015-07-19 15:25:04 +02:00
standalonetemplate.py setuptools not present issue deprecating gentest 2015-07-25 13:50:40 +02:00
terminal.py (w)warnings -> (w)pytest-warnings in "-r chars" help 2015-09-23 01:09:09 -03:00
tmpdir.py Make tmpdir resiliant to user ids that do not exist 2015-09-18 21:26:19 -04:00
unittest.py Merge remote-tracking branch 'origin/pytest-2.7' 2015-06-19 10:03:37 +02:00