MCPcopy Index your code
hub / github.com/ipython/ipython / test_iso8859_5

Method test_iso8859_5

tests/test_ultratb.py:103–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 ip.run_cell("fooé.f()")
102
103 def test_iso8859_5(self):
104 with TemporaryDirectory() as td:
105 fname = os.path.join(td, "dfghjkl.py")
106
107 with io.open(fname, "w", encoding="iso-8859-5") as f:
108 f.write(iso_8859_5_file)
109
110 with prepended_to_syspath(td):
111 ip.run_cell("from dfghjkl import fail")
112
113 with tt.AssertPrints("ZeroDivisionError"):
114 with tt.AssertPrints("дбИЖ", suppress=False):
115 ip.run_cell("fail()")
116
117 def test_nonascii_msg(self):
118 cell = "raise Exception('é')"

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
run_cellMethod · 0.45

Tested by

no test coverage detected