MCPcopy Index your code
hub / github.com/python/cpython / test_copy_file_to_directory

Method test_copy_file_to_directory

Lib/test/test_pathlib/test_copy.py:54–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 self.target_ground.readbytes(result))
53
54 def test_copy_file_to_directory(self):
55 if isinstance(self.target_root, WritableZipPath):
56 self.skipTest('needs local target')
57 source = self.source_root / 'fileA'
58 target = self.target_root / 'copyA'
59 self.target_ground.create_dir(target)
60 self.assertRaises(OSError, source.copy, target)
61
62 def test_copy_file_to_itself(self):
63 source = self.source_root / 'fileA'

Callers

nothing calls this directly

Calls 3

skipTestMethod · 0.80
create_dirMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected