MCPcopy Index your code
hub / github.com/RustPython/RustPython / BadWriter

Class BadWriter

Lib/test/test_csv.py:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 def test_writer_arg_valid(self):
97 self._test_arg_valid(csv.writer, StringIO())
98 class BadWriter:
99 @property
100 def write(self):
101 raise OSError
102 self.assertRaises(OSError, csv.writer, BadWriter())
103
104 def _test_default_attrs(self, ctor, *args):

Callers 1

test_writer_arg_validMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_writer_arg_validMethod · 0.68