File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -271,21 +271,20 @@ def test_write_dev_overrides(tmp_path):
271271 assert "urllib3==1.26.9" in content
272272
273273
274- def test_write_dev_overrides_source_wins ():
274+ def test_write_dev_overrides_source_wins (tmp_path ):
275275 """Test write_dev_overrides comments out override when package is in sources."""
276276 from mxdev .processing import write_dev_overrides
277277
278278 overrides = {
279279 "my.package" : "my.package==1.0.0" ,
280280 }
281281
282- outfile = pathlib . Path ( "/tmp/ test_override_source_wins.txt")
282+ outfile = tmp_path / " test_override_source_wins.txt"
283283 with open (outfile , "w" ) as fio :
284284 write_dev_overrides (fio , overrides , package_keys = ["my.package" ])
285285
286286 content = outfile .read_text ()
287287 assert "# my.package==1.0.0 IGNORE mxdev constraint override" in content
288- outfile .unlink ()
289288
290289
291290def test_write_main_package (tmp_path ):
You can’t perform that action at this time.
0 commit comments