(self)
| 88 | class 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: |
nothing calls this directly
no test coverage detected