@onlyif_unicode_paths
def test_unicode_in_filename():
 try:
  path.get_py_filename('foo\xc3\xa9\xc3\xa8.py', force_win32=False)
 except IOError as ex:
  str(ex)

@ onlyif_unicode_paths def test_unicode_in_filename ( ) : try : path . get_py_filename ( 'foo\xc3\xa9\xc3\xa8.py' , force_win32 = False ) except IOError as ex : str ( ex )
when a file doesnt exist .