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

Method test_flock_overflow

Lib/test/test_fcntl.py:199–202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

197
198 @cpython_only
199 def test_flock_overflow(self):
200 _testcapi = import_module("_testcapi")
201 self.assertRaises(OverflowError, fcntl.flock, _testcapi.INT_MAX+1,
202 fcntl.LOCK_SH)
203
204 @unittest.skipIf(sys.platform != 'darwin', "F_GETPATH is only available on macos")
205 def test_fcntl_f_getpath(self):

Callers

nothing calls this directly

Calls 2

import_moduleFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected