pytest2/testing/python
Florian Bruhin c790f7475e Fix getting line number with nasty __getattr__.
When an object has a custom __getattr__ which always returns a non-int, we
tried to get compat_co_firstlineno from it and checked it was a integer, which
caused an exception if such a class is mistakenly collected.

If we still mistakenly collect such a class (which is likely to be something
other than a test), we now skip it with a warning (because it probably has an
__init__) instead of producing an error.

See #1204.
2015-11-30 16:13:15 +01:00
..
collect.py Fix getting line number with nasty __getattr__. 2015-11-30 16:13:15 +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