pytest2/testing/python
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
..
collect.py collection: Prevent non-function callables from being collected 2015-10-12 22:23:18 +01:00
fixture.py Add docstring. 2015-08-31 15:11:57 +02:00
integration.py change test module importing behaviour to append to sys.path 2015-04-17 22:25:35 +02:00
metafunc.py Fix SystemError when using unicode_escape on Python 3 2015-09-29 18:20:30 -03:00
raises.py Added `warns` to assert warnings are thrown 2015-07-30 23:28:32 -04:00