@@ -67,7 +67,7 @@ def test_rejects_not_okay_name(self, tmp_path):
67
67
pass
68
68
69
69
with (
70
- pytest .raises (ValueError , match = "Not a valid wheel filename: .+" ),
70
+ pytest .raises (ValueError , match = r "Not a valid wheel filename: .+" ),
71
71
WheelFile .open (str (path )),
72
72
):
73
73
pass
@@ -233,7 +233,7 @@ def test_rejects_record_missing_hash(self, fancy_wheel):
233
233
WheelFile .open (fancy_wheel ) as source ,
234
234
pytest .raises (
235
235
WheelFile .validation_error ,
236
- match = "hash / size of (.+) is not included in RECORD" ,
236
+ match = r "hash / size of (.+) is not included in RECORD" ,
237
237
),
238
238
):
239
239
source .validate_record (validate_contents = False )
@@ -279,7 +279,7 @@ def test_reject_signature_file_in_record(self, fancy_wheel):
279
279
WheelFile .open (fancy_wheel ) as source ,
280
280
pytest .raises (
281
281
WheelFile .validation_error ,
282
- match = "digital signature file (.+) is incorrectly contained in RECORD." ,
282
+ match = r "digital signature file (.+) is incorrectly contained in RECORD." ,
283
283
),
284
284
):
285
285
source .validate_record (validate_contents = False )
@@ -307,7 +307,7 @@ def test_rejects_record_contain_self_hash(self, fancy_wheel):
307
307
WheelFile .open (fancy_wheel ) as source ,
308
308
pytest .raises (
309
309
WheelFile .validation_error ,
310
- match = "RECORD file incorrectly contains hash / size." ,
310
+ match = r "RECORD file incorrectly contains hash / size." ,
311
311
),
312
312
):
313
313
source .validate_record (validate_contents = False )
@@ -334,7 +334,7 @@ def test_rejects_record_validation_failed(self, fancy_wheel):
334
334
WheelFile .open (fancy_wheel ) as source ,
335
335
pytest .raises (
336
336
WheelFile .validation_error ,
337
- match = "hash / size of (.+) didn't match RECORD" ,
337
+ match = r "hash / size of (.+) didn't match RECORD" ,
338
338
),
339
339
):
340
340
source .validate_record ()
0 commit comments