@dec.onlyif_unicode_paths
def test_unicode_cwd():
 wd = tempfile.mkdtemp(suffix=u'\u20ac')
 old_wd = os.getcwd()
 os.chdir(wd)
 try:
  app = BaseIPythonApplication()
  app.init_profile_dir()
  app.init_config_files()
  app.load_config_file(suppress_errors=False)
 finally:
  os.chdir(old_wd)

@ dec . onlyif_unicode_paths def test_unicode_cwd ( ) : wd = tempfile . mkdtemp ( suffix = u'\u20ac' ) old_wd = os . getcwd ( ) os . chdir ( wd ) try : app = BaseIPythonApplication ( ) app . init_profile_dir ( ) app . init_config_files ( ) app . load_config_file ( suppress_errors = False ) finally : os . chdir ( old_wd )
check that ipython starts with non-ascii characters in the path .