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