Changeset bb4ff2a in sasmodels for conftest.py
- Timestamp:
- Jan 26, 2018 10:45:35 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 42158d2
- Parents:
- ecb485c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
conftest.py
ra69d8cd rbb4ff2a 11 11 test specifically from the py.test command line. [This is perhaps because 12 12 the modifyitems hook is only called after test selection.] 13 14 *pytest_ignore_collect* skips kernelcl.py if pyopencl cannot be imported. 13 15 """ 14 16 from __future__ import print_function 15 17 18 import os.path 19 16 20 import pytest 17 21 from _pytest.unittest import TestCaseFunction 22 23 try: 24 import pyopencl 25 TEST_PYOPENCL = True 26 except ImportError: 27 TEST_PYOPENCL = False 28 29 def pytest_ignore_collect(path, config): 30 ignore = TEST_PYOPENCL and path.basename == "kernelcl.py" 31 return ignore 18 32 19 33 USE_DOCSTRING_AS_DESCRIPTION = True
Note: See TracChangeset
for help on using the changeset viewer.