##// END OF EJS Templates
Use onlyif_unicode_paths in utils tests
Thomas Kluyver -
Show More
@@ -28,7 +28,8 b' from nose import with_setup'
28
28
29 import IPython
29 import IPython
30 from IPython.testing import decorators as dec
30 from IPython.testing import decorators as dec
31 from IPython.testing.decorators import skip_if_not_win32, skip_win32
31 from IPython.testing.decorators import (skip_if_not_win32, skip_win32,
32 onlyif_unicode_paths,)
32 from IPython.testing.tools import make_tempfile, AssertPrints
33 from IPython.testing.tools import make_tempfile, AssertPrints
33 from IPython.utils import path
34 from IPython.utils import path
34 from IPython.utils import py3compat
35 from IPython.utils import py3compat
@@ -479,7 +480,8 b' def test_get_py_filename():'
479 else:
480 else:
480 nt.assert_raises(IOError, path.get_py_filename, '"foo with spaces.py"', force_win32=False)
481 nt.assert_raises(IOError, path.get_py_filename, '"foo with spaces.py"', force_win32=False)
481 nt.assert_raises(IOError, path.get_py_filename, "'foo with spaces.py'", force_win32=False)
482 nt.assert_raises(IOError, path.get_py_filename, "'foo with spaces.py'", force_win32=False)
482
483
484 @onlyif_unicode_paths
483 def test_unicode_in_filename():
485 def test_unicode_in_filename():
484 """When a file doesn't exist, the exception raised should be safe to call
486 """When a file doesn't exist, the exception raised should be safe to call
485 str() on - i.e. in Python 2 it must only have ASCII characters.
487 str() on - i.e. in Python 2 it must only have ASCII characters.
General Comments 0
You need to be logged in to leave comments. Login now