Skip to content

Commit

Permalink
test: Skip test on Windows (it's an edge case that is not expected to…
Browse files Browse the repository at this point in the history
… be encountered)
  • Loading branch information
jpmckinney committed Jul 23, 2024
1 parent 54af695 commit a35c08f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~

Expand Down
1 change: 1 addition & 0 deletions tests/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a35c08f

Please sign in to comment.