(rootdir, repeats)
| 545 | |
| 546 | |
| 547 | def batch_make_numbered_dirs(rootdir, repeats): |
| 548 | for i in range(repeats): |
| 549 | dir_ = local.make_numbered_dir(prefix="repro-", rootdir=rootdir) |
| 550 | file_ = dir_.join("foo") |
| 551 | file_.write_text(f"{i}", encoding="utf-8") |
| 552 | actual = int(file_.read_text(encoding="utf-8")) |
| 553 | assert actual == i, ( |
| 554 | f"int(file_.read_text(encoding='utf-8')) is {actual} instead of {i}" |
| 555 | ) |
| 556 | dir_.join(".lock").remove(ignore_errors=True) |
| 557 | return True |
| 558 | |
| 559 | |
| 560 | class TestLocalPath(CommonFSTests): |
nothing calls this directly
no test coverage detected