12
12
13
13
14
14
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 :
16
16
builder .new_file ("hello/héllö.py" , 'print("Héllö, world!")\n ' )
17
17
builder .new_file ("hello/h,ll,.py" , 'print("Héllö, world!")\n ' )
18
18
@@ -50,7 +50,7 @@ def test_timestamp(tmp_path_factory, tmp_path, monkeypatch):
50
50
monkeypatch .setenv ("SOURCE_DATE_EPOCH" , "315576060" )
51
51
52
52
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 :
54
54
builder .add_tree (build_dir )
55
55
56
56
with ZipFile (wheel_path , "r" ) as zf :
@@ -73,7 +73,7 @@ def test_attributes(tmp_path_factory, tmp_path):
73
73
path .chmod (mode )
74
74
75
75
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 :
77
77
builder .add_tree (build_dir )
78
78
79
79
with ZipFile (wheel_path , "r" ) as zf :
0 commit comments