(hardlink_function, dir)
| 968 | max_allowed_hard_links = 1023 |
| 969 | |
| 970 | def run(hardlink_function, dir): |
| 971 | src = r"test.txt" |
| 972 | with open(src, "w") as f: |
| 973 | f.write("test") |
| 974 | for i in range(max_allowed_hard_links + 1): |
| 975 | hardlink_function(src, os.path.join(dir, "{}.txt".format(i))) |
| 976 | |
| 977 | dir1 = library.python.fs.create_dirs("one") |
| 978 | with pytest.raises(WindowsError) as e: |