Skip to content

Commit b6607dc

Browse files
committed
Remove wrong parameters in WheelBuilder test
1 parent 7f95389 commit b6607dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setuptools/tests/test_wheelbuilder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

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

@@ -50,7 +50,7 @@ def test_timestamp(tmp_path_factory, tmp_path, monkeypatch):
5050
monkeypatch.setenv("SOURCE_DATE_EPOCH", "315576060")
5151

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

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

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

7979
with ZipFile(wheel_path, "r") as zf:

0 commit comments

Comments
 (0)