(tmpdir)
| 4 | |
| 5 | |
| 6 | def test_long_path(tmpdir): |
| 7 | filename = "a" * 1000 + ".lock" |
| 8 | lock1 = FileLock(str(tmpdir / filename)) |
| 9 | assert lock1.lock_file.endswith(".lock") |
| 10 | assert not lock1.lock_file.endswith(filename) |
| 11 | assert len(os.path.basename(lock1.lock_file)) <= 255 |