Check that IPython starts with non-ascii characters in the path.
()
| 13 | |
| 14 | @dec.onlyif_unicode_paths |
| 15 | def test_unicode_cwd(): |
| 16 | """Check that IPython starts with non-ascii characters in the path.""" |
| 17 | wd = tempfile.mkdtemp(suffix="€") |
| 18 | |
| 19 | old_wd = os.getcwd() |
| 20 | os.chdir(wd) |
| 21 | # raise Exception(repr(os.getcwd())) |
| 22 | try: |
| 23 | app = BaseIPythonApplication() |
| 24 | # The lines below are copied from Application.initialize() |
| 25 | app.init_profile_dir() |
| 26 | app.init_config_files() |
| 27 | app.load_config_file(suppress_errors=False) |
| 28 | finally: |
| 29 | os.chdir(old_wd) |
| 30 | |
| 31 | |
| 32 | @dec.onlyif_unicode_paths |
nothing calls this directly
no test coverage detected
searching dependent graphs…