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

Method test_writer_arg_valid

Lib/test/test_csv.py:96–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94
95 @unittest.expectedFailure # TODO: RUSTPYTHON
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):
105 obj = ctor(*args)

Callers

nothing calls this directly

Calls 4

_test_arg_validMethod · 0.95
StringIOClass · 0.90
BadWriterClass · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected