MCPcopy Create free account
hub / github.com/catboost/catboost / run

Function run

library/python/fs/test/test_fs.py:970–975  ·  view source on GitHub ↗
(hardlink_function, dir)

Source from the content-addressed store, hash-verified

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:

Callers 1

test_hardlink_or_copyFunction · 0.70

Calls 5

openFunction · 0.50
rangeFunction · 0.50
writeMethod · 0.45
joinMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected