Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ BrokenFile
Class
BrokenFile
Lib/test/test_csv.py:290–292 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
288
289
def
test_writerows(self):
290
class
BrokenFile:
291
def
write(self, buf):
292
raise
OSError
293
writer = csv.writer(BrokenFile())
294
self.assertRaises(OSError, writer.writerows, [[
'a'
]])
295
Callers
1
test_writerows
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_writerows
Method · 0.56