Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ BrokenFile
Class
BrokenFile
Lib/test/test_csv.py:284–286 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
282
283
def
test_writerows(self):
284
class
BrokenFile:
285
def
write(self, buf):
286
raise
OSError
287
writer = csv.writer(BrokenFile())
288
self.assertRaises(OSError, writer.writerows, [[
'a'
]])
289
Callers
1
test_writerows
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_writerows
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…