MCPcopy Create free account
hub / github.com/ipython/ipython / test_iso8859_5

Method test_iso8859_5

IPython/core/tests/test_ultratb.py:108–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
run_cellMethod · 0.45

Tested by

no test coverage detected