Skip to content
Snippets Groups Projects
Commit eb941885 authored by Markus Holzer's avatar Markus Holzer
Browse files

Remove global warning catcher and add more extra requires

parent cced97f4
No related branches found
No related tags found
No related merge requests found
Pipeline #35045 passed with warnings
......@@ -5,7 +5,6 @@ import numpy as np
# This test aims to trigger deprication warnings. Thus the warnings should not be displayed in the warning summary.
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
def test_create_kernel_backwards_compatibility():
size = (30, 20)
......@@ -21,9 +20,11 @@ def test_create_kernel_backwards_compatibility():
jacobi = ps.Assignment(d[0, 0], (f[1, 0] + f[-1, 0] + f[0, 1] + f[0, -1]) / 4)
ast_enum = ps.create_kernel(jacobi, target=ps.Target.CPU).compile()
ast_string = ps.create_kernel(jacobi, target='cpu').compile()
with pytest.warns(DeprecationWarning):
ast_string = ps.create_kernel(jacobi, target='cpu').compile()
# noinspection PyTypeChecker
ast_config = ps.create_kernel(jacobi, config=ps.CreateKernelConfig(target='cpu')).compile()
with pytest.warns(DeprecationWarning):
ast_config = ps.create_kernel(jacobi, config=ps.CreateKernelConfig(target='cpu')).compile()
ast_enum(f=src_field_enum, d=dst_field_enum)
ast_string(f=src_field_string, d=dst_field_string)
ast_config(f=src_field_config, d=dst_field_config)
......
......@@ -58,7 +58,6 @@ def analysis(kernel, machine, model='ecmdata'):
@pytest.mark.kerncraft
@pytest.mark.filterwarnings("ignore::DeprecationWarning") # TODO: remove filter if cachesim deprication warning is fixed
def test_3d_7pt_osaca():
size = [20, 200, 200]
......@@ -94,7 +93,6 @@ def test_3d_7pt_osaca():
@pytest.mark.kerncraft
@pytest.mark.filterwarnings("ignore::DeprecationWarning") # TODO: remove filter if cachesim deprication warning is fixed
def test_2d_5pt():
machine_file_path = INPUT_FOLDER / "Example_SandyBridgeEP_E5-2680.yml"
machine = MachineModel(path_to_yaml=machine_file_path)
......@@ -121,7 +119,6 @@ def test_2d_5pt():
@pytest.mark.kerncraft
@pytest.mark.filterwarnings("ignore::DeprecationWarning") # TODO: remove filter if cachesim deprication warning is fixed
def test_3d_7pt():
machine_file_path = INPUT_FOLDER / "Example_SandyBridgeEP_E5-2680.yml"
machine = MachineModel(path_to_yaml=machine_file_path)
......
......@@ -122,7 +122,9 @@ setuptools.setup(name='pystencils',
'autodiff': ['pystencils-autodiff'],
'doc': ['sphinx', 'sphinx_rtd_theme', 'nbsphinx',
'sphinxcontrib-bibtex', 'sphinx_autodoc_typehints', 'pandoc'],
'use_cython': ['Cython']
'use_cython': ['Cython'],
'kerncraft': ['osaca', 'kerncraft'],
'llvm_jit': ['llvmlite']
},
tests_require=['pytest',
'pytest-cov',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment