From f0863c498afbeb9f834b17353ecf7f05366edb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20R=C3=B6hling?= Date: Sun, 19 Nov 2023 01:16:06 +0100 Subject: Use pathlib instead of sphinx.testing.path Forwarded: https://github.com/scikit-build/moderncmakedomain/pull/41 Gbp-Pq: Name 0001-Use-pathlib-instead-of-sphinx.testing.path.patch --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 6a0c552..c62ee4e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,9 +1,9 @@ import pytest -from sphinx.testing.path import path +from pathlib import Path pytest_plugins = 'sphinx.testing.fixtures' @pytest.fixture(scope="session") def rootdir(): - return path(__file__).parent.abspath() / "roots" + return Path(__file__).parent.absolute() / "roots" -- cgit v1.2.3 From 84392460c7dd5901ea3a3692e5e1f8dbbfb80d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20R=C3=B6hling?= Date: Sun, 19 Nov 2023 01:23:08 +0100 Subject: Do not fail on DeprecationWarning Forwarded: not-needed Gbp-Pq: Name 0002-Do-not-fail-on-DeprecationWarning.patch --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 6fbdac9..cfafb62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,7 @@ addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"] xfail_strict = true filterwarnings = [ "error", + "default::DeprecationWarning:", "ignore::DeprecationWarning:sphinx.builders.gettext", ] log_cli_level = "info" -- cgit v1.2.3