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

Method test_char_write

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

Source from the content-addressed store, hash-verified

1114
1115 @unittest.expectedFailure # TODO: RUSTPYTHON
1116 def test_char_write(self):
1117 import array, string
1118 a = array.array('w', string.ascii_letters)
1119
1120 with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj:
1121 writer = csv.writer(fileobj, dialect="excel")
1122 writer.writerow(a)
1123 expected = ",".join(a)+"\r\n"
1124 fileobj.seek(0)
1125 self.assertEqual(fileobj.read(), expected)
1126
1127class TestDialectValidity(unittest.TestCase):
1128 def test_quoting(self):

Callers

nothing calls this directly

Calls 7

TemporaryFileFunction · 0.90
writerMethod · 0.45
writerowMethod · 0.45
joinMethod · 0.45
seekMethod · 0.45
assertEqualMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected