Skip to content

Commit

Permalink
test_fetch: fix ruff QA warning
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
  • Loading branch information
arthurzam committed Jun 12, 2024
1 parent e52b6c4 commit c5da3f9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/test_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
@pytest.fixture(scope="session")
def test_crates(tmp_path_factory):
test_dir = tmp_path_factory.mktemp("crates")
with open(test_dir / "foo-1.crate", "wb") as f:
f.write(b"test string\n")
with open(test_dir / "bar-2.crate", "wb") as f:
f.write(b"other string\n")
(test_dir / "foo-1.crate").write_bytes(b"test string\n")
(test_dir / "bar-2.crate").write_bytes(b"other string\n")
yield test_dir


Expand Down

0 comments on commit c5da3f9

Please sign in to comment.