Skip to content

Commit

Permalink
Remove wrong parameters in WheelBuilder test
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 3, 2023
1 parent c8dc1ed commit 7f05c32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setuptools/tests/test_wheelbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def test_write_str(tmp_path):
with WheelBuilder(tmp_path / "test-1.0-py3-none-any.whl", "w") as builder:
with WheelBuilder(tmp_path / "test-1.0-py3-none-any.whl") as builder:
builder.new_file("hello/héllö.py", 'print("Héllö, world!")\n')
builder.new_file("hello/h,ll,.py", 'print("Héllö, world!")\n')

Expand Down Expand Up @@ -50,7 +50,7 @@ def test_timestamp(tmp_path_factory, tmp_path, monkeypatch):
monkeypatch.setenv("SOURCE_DATE_EPOCH", "315576060")

wheel_path = tmp_path / "test-1.0-py3-none-any.whl"
with WheelBuilder(wheel_path, "w") as builder:
with WheelBuilder(wheel_path) as builder:
builder.add_tree(build_dir)

with ZipFile(wheel_path, "r") as zf:
Expand All @@ -73,7 +73,7 @@ def test_attributes(tmp_path_factory, tmp_path):
path.chmod(mode)

wheel_path = tmp_path / "test-1.0-py3-none-any.whl"
with WheelBuilder(wheel_path, "w") as builder:
with WheelBuilder(wheel_path) as builder:
builder.add_tree(build_dir)

with ZipFile(wheel_path, "r") as zf:
Expand Down

0 comments on commit 7f05c32

Please sign in to comment.