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

Method create_invalid

Lib/test/test_csv.py:1287–1296  ·  view source on GitHub ↗
(field_name, value, **kwargs)

Source from the content-addressed store, hash-verified

1285 @unittest.expectedFailure # TODO: RUSTPYTHON
1286 def test_invalid_chars(self):
1287 def create_invalid(field_name, value, **kwargs):
1288 class mydialect(csv.Dialect):
1289 delimiter = ','
1290 quoting = csv.QUOTE_ALL
1291 quotechar = '"'
1292 lineterminator = '\r\n'
1293 setattr(mydialect, field_name, value)
1294 for field_name, value in kwargs.items():
1295 setattr(mydialect, field_name, value)
1296 d = mydialect()
1297
1298 for field_name in ("delimiter", "escapechar", "quotechar"):
1299 with self.subTest(field_name=field_name):

Callers

nothing calls this directly

Calls 3

setattrFunction · 0.85
mydialectClass · 0.70
itemsMethod · 0.45

Tested by

no test coverage detected