diff --git a/tests/scripts/test_make_release.py b/tests/scripts/test_make_release.py index 51b5e5ab7..880f061b8 100644 --- a/tests/scripts/test_make_release.py +++ b/tests/scripts/test_make_release.py @@ -2,7 +2,7 @@ from pathlib import Path from unittest import mock -import make_release +import pytest DATA_PATH = Path(__file__).parent.resolve() / "data" @@ -18,6 +18,8 @@ def test_get_git_commits_since_tag(): + make_release = pytest.importorskip("make_release") + with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \ mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \ mock.patch("subprocess.check_output", return_value=GIT_LOG__VERSION_4_0_1): @@ -62,6 +64,8 @@ def test_get_git_commits_since_tag(): def test_get_formatted_changes(): + make_release = pytest.importorskip("make_release") + with open(COMMITS__VERSION_4_0_1, mode="rb") as commits, \ mock.patch("urllib.request.urlopen", side_effect=lambda n: commits), \ mock.patch("subprocess.check_output", return_value=GIT_LOG__VERSION_4_0_1): diff --git a/tests/test_generic.py b/tests/test_generic.py index f77b018f8..f31a4f1c8 100644 --- a/tests/test_generic.py +++ b/tests/test_generic.py @@ -1247,6 +1247,7 @@ def test_encodedstream_set_data(): assert cc[NameObject("/Test")] == "/MyTest" +@pytest.mark.enable_socket() def test_calling_indirect_objects(): """Cope with cases where attributes/items are called from indirectObject""" url = (