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

Function test_unicode_cwd

tests/test_application.py:15–29  ·  view source on GitHub ↗

Check that IPython starts with non-ascii characters in the path.

()

Source from the content-addressed store, hash-verified

13
14@dec.onlyif_unicode_paths
15def 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

Callers

nothing calls this directly

Calls 4

init_profile_dirMethod · 0.95
init_config_filesMethod · 0.95
load_config_fileMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…