2015-02-09 12:16:56 +00:00
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
|
2017-09-17 14:22:49 +00:00
|
|
|
import sys
|
2017-11-26 21:18:07 +00:00
|
|
|
|
2015-02-09 12:16:56 +00:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
|
|
def C():
|
|
|
|
"""
|
2016-12-14 07:35:56 +00:00
|
|
|
Return a simple but fully featured attrs class with an x and a y attribute.
|
2015-02-09 12:16:56 +00:00
|
|
|
"""
|
2017-10-02 17:32:10 +00:00
|
|
|
import attr
|
2015-02-09 12:16:56 +00:00
|
|
|
|
2017-10-02 17:32:10 +00:00
|
|
|
@attr.s
|
2015-02-09 12:16:56 +00:00
|
|
|
class C(object):
|
2017-10-02 17:32:10 +00:00
|
|
|
x = attr.ib()
|
|
|
|
y = attr.ib()
|
2015-02-09 12:16:56 +00:00
|
|
|
|
|
|
|
return C
|
2017-09-17 14:22:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
collect_ignore = []
|
|
|
|
if sys.version_info[:2] < (3, 6):
|
2017-10-26 10:55:34 +00:00
|
|
|
collect_ignore.extend([
|
|
|
|
"tests/test_annotations.py",
|
|
|
|
"tests/test_init_subclass.py",
|
|
|
|
])
|