MCPcopy Create free account
hub / github.com/python/cpython / BadFile

Class BadFile

Lib/test/test_fcntl.py:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class BadFile:
23 def __init__(self, fn):
24 self.fn = fn
25 def fileno(self):
26 return self.fn
27
28def try_lockf_on_other_process_fail(fname, cmd):
29 f = open(fname, 'wb+')

Callers 2

test_fcntl_bad_fileMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_fcntl_bad_fileMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…