Skip to content

Commit

Permalink
tests: mark some tests deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Dec 1, 2022
1 parent ddefbaa commit 4cae1bd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ filterwarnings = [
]
log_cli_level = "info"
markers = [
"fortran: fortran testing",
"fortran: Fortran testing",
"deprecated: These tests deprecated setuptools features",
]
1 change: 1 addition & 0 deletions tests/test_hello_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def run_clean():
assert "running clean" in msg


@pytest.mark.deprecated
@project_setup_py_test("hello-cpp", ["develop"])
def test_hello_develop():
for expected_file in [
Expand Down
4 changes: 4 additions & 0 deletions tests/test_issue274_support_default_package_dir.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pytest

from . import (
_tmpdir,
execute_setup_py,
Expand All @@ -8,11 +10,13 @@
)


@pytest.mark.deprecated
@project_setup_py_test("issue-274-support-default-package-dir", ["install"], disable_languages_test=True)
def test_install_command():
pass


@pytest.mark.deprecated
def test_test_command():
with push_dir():

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pytest

from . import (
_tmpdir,
execute_setup_py,
Expand All @@ -8,11 +10,13 @@
)


@pytest.mark.deprecated
@project_setup_py_test("issue-274-support-one-package-without-package-dir", ["install"], disable_languages_test=True)
def test_install_command():
pass


@pytest.mark.deprecated
def test_test_command():
with push_dir():

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import pytest

from . import project_setup_py_test


@pytest.mark.deprecated
@project_setup_py_test("issue-334-configure-cmakelist-non-cp1252-encoding", ["install"], disable_languages_test=True)
def test_install_command():
pass
1 change: 1 addition & 0 deletions tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ def test_cmake_minimum_required_version_keyword():
assert "CMake version 99.98.97 or higher is required." in message


@pytest.mark.deprecated
@pytest.mark.filterwarnings("ignore:setuptools.installer is deprecated:Warning")
@pytest.mark.skipif(
os.environ.get("CONDA_BUILD", "0") == "1",
Expand Down

0 comments on commit 4cae1bd

Please sign in to comment.