From a35c08f5ee297714773a5bfc64a5786c364f5fd9 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 23 Jul 2024 00:45:41 -0400 Subject: [PATCH] test: Skip test on Windows (it's an edge case that is not expected to be encountered) --- docs/news.rst | 2 ++ tests/test_runner.py | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/news.rst b/docs/news.rst index 5757019f..b8842c2f 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -6,6 +6,8 @@ Release notes 1.5.0b1 (2024-07-19) -------------------- +This release contains the most changes in a decade. Therefore, a beta release is made first. + Added ~~~~~ diff --git a/tests/test_runner.py b/tests/test_runner.py index d186fbcc..a70782eb 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -57,6 +57,7 @@ def test_no_load_scrapy_conf(module): assert "scrapy.conf" not in sys.modules, f"module {module!r} must not cause the scrapy.conf module to be loaded" +@pytest.mark.skipif(sys.platform == "win32", reason="The temporary file encounters a PermissionError") def test_bytesio(monkeypatch, capsys, chdir): (chdir / "scrapyd.conf").write_text("[scrapyd]\neggstorage = tests.test_runner.MockEggStorage") monkeypatch.setenv("SCRAPY_PROJECT", "bytesio")