Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport] Avoid using pytest attributes during import #6470

Merged
merged 1 commit into from Mar 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 8 additions & 3 deletions chainer/testing/attr.py
Expand Up @@ -28,9 +28,14 @@ def get_error():
if _error is None:
_gpu_limit = int(os.getenv('CHAINER_TEST_GPU_LIMIT', '-1'))

cudnn = pytest.mark.cudnn
ideep = pytest.mark.ideep
slow = pytest.mark.slow
def cudnn(*args, **kwargs):
return pytest.mark.cudnn(*args, **kwargs)

def ideep(*args, **kwargs):
return pytest.mark.ideep(*args, **kwargs)

def slow(*args, **kwargs):
return pytest.mark.slow(*args, **kwargs)

else:
def _dummy_callable(*args, **kwargs):
Expand Down