(self)
| 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 | |
| 1127 | class TestDialectValidity(unittest.TestCase): |
| 1128 | def test_quoting(self): |
nothing calls this directly
no test coverage detected