pytest2/testing/python
Florian Bruhin ba9146c131 Don't collect classes with truthy __getattr__.
When we have a metaclass which returns something truthy (like a method) in its
__getattr__, we collected the class because pytest thought its __test__
attribute was set to True.

We can work around this to some degree by assuming __test__ will always be set
to an explicit True if that's what the user has intended, and if it's something
other than that, this is probably a mistake.

Fixes #1204.
2015-11-30 16:41:13 +01:00
..
collect.py Fix situation where a traceback entry "path" returns a str object 2015-10-16 20:18:14 -03:00
fixture.py Add docstring. 2015-08-31 15:11:57 +02:00
integration.py Don't collect classes with truthy __getattr__. 2015-11-30 16:41:13 +01: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