Skip to content

Commit d3d40dd

Browse files
committed
windows fixes 3
1 parent c02f91e commit d3d40dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_processing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

291290
def test_write_main_package(tmp_path):

0 commit comments

Comments
 (0)