MCPcopy Create free account
hub / github.com/ipython/ipython / test_unicode_cwd

Function test_unicode_cwd

IPython/core/tests/test_application.py:17–31  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

15
16@dec.onlyif_unicode_paths
17def 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
34def test_unicode_ipdir():

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