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

Method test_nonascii_path

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
run_cellMethod · 0.45

Tested by

no test coverage detected