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

Method test_nonascii_path

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

Source from the content-addressed store, hash-verified

93class NonAsciiTest(unittest.TestCase):
94 @onlyif_unicode_paths
95 def test_nonascii_path(self):
96 # Non-ascii directory name as well.
97 with TemporaryDirectory(suffix=u'é') as td:
98 fname = os.path.join(td, u"fooé.py")
99 with open(fname, "w") as f:
100 f.write(file_1)
101
102 with prepended_to_syspath(td):
103 ip.run_cell("import foo")
104
105 with tt.AssertPrints("ZeroDivisionError"):
106 ip.run_cell("foo.f()")
107
108 def test_iso8859_5(self):
109 with TemporaryDirectory() as td:

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
run_cellMethod · 0.45

Tested by

no test coverage detected