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

Method test_filesystem_full

Lib/test/test_shutil.py:3261–3267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3259 self.zerocopy_fun(src, dst)
3260
3261 def test_filesystem_full(self):
3262 # Emulate a case where filesystem is full and sendfile() fails
3263 # on first call.
3264 with unittest.mock.patch(self.PATCHPOINT,
3265 side_effect=OSError(errno.ENOSPC, "yo")):
3266 with self.get_files() as (src, dst):
3267 self.assertRaises(OSError, self.zerocopy_fun, src, dst)
3268
3269
3270class _ZeroCopyFileLinuxTest(_ZeroCopyFileTest):

Callers

nothing calls this directly

Calls 2

get_filesMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected