From 7f05c3213b90b31700d9b273c0f5b1e5504af5bd Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Thu, 30 Mar 2023 20:23:52 +0100 Subject: [PATCH] Remove wrong parameters in WheelBuilder test --- setuptools/tests/test_wheelbuilder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setuptools/tests/test_wheelbuilder.py b/setuptools/tests/test_wheelbuilder.py index 94193c91fa..046fccc486 100644 --- a/setuptools/tests/test_wheelbuilder.py +++ b/setuptools/tests/test_wheelbuilder.py @@ -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') @@ -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: @@ -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: