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
|
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
|
|
|
"""
|
|
|
|
from attr import attributes, attr
|
|
|
|
|
|
|
|
@attributes
|
|
|
|
class C(object):
|
|
|
|
x = attr()
|
|
|
|
y = attr()
|
|
|
|
|
|
|
|
return C
|
2017-09-17 14:22:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
collect_ignore = []
|
|
|
|
if sys.version_info[:2] < (3, 6):
|
|
|
|
collect_ignore.append("tests/test_annotations.py")
|