test_ok2/testing
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
..
cx_freeze Fix install cx_freeze 2015-09-17 23:32:27 -03:00
python collection: Prevent non-function callables from being collected 2015-10-12 22:23:18 +01:00
acceptance_test.py return non-zero exit code if no tests are collected 2015-08-18 07:35:02 -03:00
test_argcomplete.py ignore argcomplete on darwin 2013-11-12 13:52:16 +01:00
test_assertinterpret.py assert reinterpretation: try mangling attributes that look like private class vars (fixes #514) 2014-05-31 14:37:02 -07:00
test_assertion.py reencode non-ascii python2 assertion reprs, fixes #877 2015-09-19 00:30:01 +02:00
test_assertrewrite.py return non-zero exit code if no tests are collected 2015-08-18 07:35:02 -03:00
test_cache.py Write failing test for parametrized tests with unmarshable parameters 2015-09-22 23:18:07 -03:00
test_capture.py return non-zero exit code if no tests are collected 2015-08-18 07:35:02 -03:00
test_collection.py return non-zero exit code if no tests are collected 2015-08-18 07:35:02 -03:00
test_config.py Rename "warnings" to "pytest-warnings" in terminal output 2015-08-27 19:59:52 -03:00
test_conftest.py fix issue #1073 -- shortcut plugin hook lookup if the attrname is not 2015-09-28 13:34:28 +02:00
test_doctest.py Fix problems when mixing autouse fixtures and doctest modules 2015-10-03 16:07:14 -03:00
test_genscript.py setuptools not present issue deprecating gentest 2015-07-25 13:50:40 +02:00
test_helpconfig.py return non-zero exit code if no tests are collected 2015-08-18 07:35:02 -03:00
test_junitxml.py Fix xml generation when used with pytest-xdist 2015-09-26 03:21:24 -03:00
test_mark.py Test file run twice fails if it contains marked class #683 2015-07-26 12:15:29 +02:00
test_monkeypatch.py Change links from bitbucket to GitHub 2015-06-15 18:28:31 -03:00
test_nose.py add test for @nose.tools.istest 2015-08-08 21:08:05 +01:00
test_parseopt.py Fix regression caused by changing the signature for parse_known_args 2015-08-27 19:35:32 -03:00
test_pastebin.py Fixing --pastebin option by using a POST request instead of a XMLRPC call 2014-10-22 21:52:40 -02:00
test_pdb.py streamline pytester API majorly: 2015-04-28 11:54:53 +02:00
test_pluginmanager.py Add missing nodeid on pytest_logwarning call in addhook. 2015-09-28 20:23:54 -04:00
test_pytester.py streamline pytester API majorly: 2015-04-28 11:54:53 +02:00
test_recwarn.py Check `deprecated_call` specific to deprecation 2015-09-28 12:35:24 -04:00
test_resultlog.py Add docs for new tests 2015-06-17 00:04:25 -03:00
test_runner.py Use inspect.signature instead of inspect.getargspec 2015-09-16 06:33:53 -04:00
test_runner_xunit.py ref #322 cleanup all teardown calling to only happen when setup succeeded. 2013-08-02 09:52:40 +02:00
test_session.py return non-zero exit code if no tests are collected 2015-08-18 07:35:02 -03:00
test_skipping.py Added testcase and help for report option 2015-09-11 12:24:45 +05:30
test_terminal.py Merge pull request #1015 from hpk42/cache-integration 2015-09-16 21:46:46 +02:00
test_tmpdir.py fix flaky get_user fallback tests 2015-09-29 21:00:12 +02:00
test_unittest.py return non-zero exit code if no tests are collected 2015-08-18 07:35:02 -03:00