1212
1313
1414def 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