Show More
@@ -4,15 +4,13 b'' | |||||
4 | # Copyright (c) IPython Development Team. |
|
4 | # Copyright (c) IPython Development Team. | |
5 | # Distributed under the terms of the Modified BSD License. |
|
5 | # Distributed under the terms of the Modified BSD License. | |
6 |
|
6 | |||
7 | import errno |
|
|||
8 | import os |
|
7 | import os | |
9 | import shutil |
|
8 | import shutil | |
10 | import sys |
|
9 | import sys | |
11 | import tempfile |
|
10 | import tempfile | |
12 | import warnings |
|
|||
13 | from contextlib import contextmanager |
|
11 | from contextlib import contextmanager | |
14 | from unittest.mock import patch |
|
12 | from unittest.mock import patch | |
15 |
from os.path import join, abspath |
|
13 | from os.path import join, abspath | |
16 | from imp import reload |
|
14 | from imp import reload | |
17 |
|
15 | |||
18 | from nose import SkipTest, with_setup |
|
16 | from nose import SkipTest, with_setup | |
@@ -25,7 +23,6 b' from IPython.testing.decorators import (skip_if_not_win32, skip_win32,' | |||||
25 | onlyif_unicode_paths,) |
|
23 | onlyif_unicode_paths,) | |
26 | from IPython.testing.tools import make_tempfile, AssertPrints |
|
24 | from IPython.testing.tools import make_tempfile, AssertPrints | |
27 | from IPython.utils import path |
|
25 | from IPython.utils import path | |
28 | from IPython.utils import py3compat |
|
|||
29 | from IPython.utils.tempdir import TemporaryDirectory |
|
26 | from IPython.utils.tempdir import TemporaryDirectory | |
30 |
|
27 | |||
31 | # Platform-dependent imports |
|
28 | # Platform-dependent imports | |
@@ -315,7 +312,7 b' def test_unicode_in_filename():' | |||||
315 | """ |
|
312 | """ | |
316 | try: |
|
313 | try: | |
317 | # these calls should not throw unicode encode exceptions |
|
314 | # these calls should not throw unicode encode exceptions | |
318 |
path.get_py_filename('fooéè.py', |
|
315 | path.get_py_filename('fooéè.py', force_win32=False) | |
319 | except IOError as ex: |
|
316 | except IOError as ex: | |
320 | str(ex) |
|
317 | str(ex) | |
321 |
|
318 |
General Comments 0
You need to be logged in to leave comments.
Login now