Show More
@@ -19,7 +19,6 b' from __future__ import print_function' | |||||
19 | import os |
|
19 | import os | |
20 | import sys |
|
20 | import sys | |
21 | import ctypes |
|
21 | import ctypes | |
22 | import msvcrt |
|
|||
23 |
|
22 | |||
24 | from ctypes import c_int, POINTER |
|
23 | from ctypes import c_int, POINTER | |
25 | from ctypes.wintypes import LPCWSTR, HLOCAL |
|
24 | from ctypes.wintypes import LPCWSTR, HLOCAL |
@@ -13,7 +13,7 b' This file is meant to be used by process.py' | |||||
13 | from __future__ import print_function |
|
13 | from __future__ import print_function | |
14 |
|
14 | |||
15 | # stdlib |
|
15 | # stdlib | |
16 |
import os, sys, |
|
16 | import os, sys, threading | |
17 | import ctypes, msvcrt |
|
17 | import ctypes, msvcrt | |
18 |
|
18 | |||
19 | # Win32 API types needed for the API calls |
|
19 | # Win32 API types needed for the API calls |
@@ -30,7 +30,6 b' try:' | |||||
30 | except: |
|
30 | except: | |
31 | numpy = None |
|
31 | numpy = None | |
32 |
|
32 | |||
33 | import codeutil |
|
|||
34 | import py3compat |
|
33 | import py3compat | |
35 | from importstring import import_item |
|
34 | from importstring import import_item | |
36 |
|
35 |
@@ -1,5 +1,5 b'' | |||||
1 | # encoding: utf-8 |
|
1 | # encoding: utf-8 | |
2 | """Tests for IPython.utils.path.py""" |
|
2 | """Tests for IPython.utils.module_paths.py""" | |
3 |
|
3 | |||
4 | #----------------------------------------------------------------------------- |
|
4 | #----------------------------------------------------------------------------- | |
5 | # Copyright (C) 2008-2011 The IPython Development Team |
|
5 | # Copyright (C) 2008-2011 The IPython Development Team | |
@@ -18,20 +18,10 b' import os' | |||||
18 | import shutil |
|
18 | import shutil | |
19 | import sys |
|
19 | import sys | |
20 | import tempfile |
|
20 | import tempfile | |
21 | import StringIO |
|
|||
22 |
|
21 | |||
23 | from os.path import join, abspath, split |
|
22 | from os.path import join, abspath, split | |
24 |
|
23 | |||
25 | import nose.tools as nt |
|
|||
26 |
|
||||
27 | from nose import with_setup |
|
|||
28 |
|
||||
29 | import IPython |
|
|||
30 | from IPython.testing import decorators as dec |
|
|||
31 | from IPython.testing.decorators import skip_if_not_win32, skip_win32 |
|
|||
32 | from IPython.testing.tools import make_tempfile |
|
24 | from IPython.testing.tools import make_tempfile | |
33 | from IPython.utils import path, io |
|
|||
34 | from IPython.utils import py3compat |
|
|||
35 |
|
25 | |||
36 | import IPython.utils.module_paths as mp |
|
26 | import IPython.utils.module_paths as mp | |
37 |
|
27 | |||
@@ -91,7 +81,7 b' def test_get_init_3():' | |||||
91 | with make_tempfile(join(TMP_TEST_DIR, "__init__.pyc")): |
|
81 | with make_tempfile(join(TMP_TEST_DIR, "__init__.pyc")): | |
92 | assert mp.get_init(TMP_TEST_DIR) is None |
|
82 | assert mp.get_init(TMP_TEST_DIR) is None | |
93 |
|
83 | |||
94 |
def test_get_init_ |
|
84 | def test_get_init_4(): | |
95 | """get_init can't find __init__ in empty testdir""" |
|
85 | """get_init can't find __init__ in empty testdir""" | |
96 | assert mp.get_init(TMP_TEST_DIR) is None |
|
86 | assert mp.get_init(TMP_TEST_DIR) is None | |
97 |
|
87 |
@@ -18,7 +18,6 b' import os' | |||||
18 | import shutil |
|
18 | import shutil | |
19 | import sys |
|
19 | import sys | |
20 | import tempfile |
|
20 | import tempfile | |
21 | from io import StringIO |
|
|||
22 | from contextlib import contextmanager |
|
21 | from contextlib import contextmanager | |
23 |
|
22 | |||
24 | from os.path import join, abspath, split |
|
23 | from os.path import join, abspath, split | |
@@ -31,7 +30,7 b' import IPython' | |||||
31 | from IPython.testing import decorators as dec |
|
30 | from IPython.testing import decorators as dec | |
32 | from IPython.testing.decorators import skip_if_not_win32, skip_win32 |
|
31 | from IPython.testing.decorators import skip_if_not_win32, skip_win32 | |
33 | from IPython.testing.tools import make_tempfile, AssertPrints |
|
32 | from IPython.testing.tools import make_tempfile, AssertPrints | |
34 |
from IPython.utils import path |
|
33 | from IPython.utils import path | |
35 | from IPython.utils import py3compat |
|
34 | from IPython.utils import py3compat | |
36 | from IPython.utils.tempdir import TemporaryDirectory |
|
35 | from IPython.utils.tempdir import TemporaryDirectory | |
37 |
|
36 |
@@ -18,9 +18,6 b' import random' | |||||
18 |
|
18 | |||
19 | import nose.tools as nt |
|
19 | import nose.tools as nt | |
20 |
|
20 | |||
21 | from nose import with_setup |
|
|||
22 |
|
||||
23 | from IPython.testing import decorators as dec |
|
|||
24 | from IPython.utils import text |
|
21 | from IPython.utils import text | |
25 |
|
22 | |||
26 | #----------------------------------------------------------------------------- |
|
23 | #----------------------------------------------------------------------------- |
@@ -4,7 +4,6 b'' | |||||
4 | # Library imports |
|
4 | # Library imports | |
5 | #----------------------------------------------------------------------------- |
|
5 | #----------------------------------------------------------------------------- | |
6 | # Stdlib |
|
6 | # Stdlib | |
7 | import sys |
|
|||
8 | import unittest |
|
7 | import unittest | |
9 |
|
8 | |||
10 | # Our own |
|
9 | # Our own |
@@ -19,18 +19,14 b' Inheritance diagram:' | |||||
19 | # Imports |
|
19 | # Imports | |
20 | #----------------------------------------------------------------------------- |
|
20 | #----------------------------------------------------------------------------- | |
21 |
|
21 | |||
22 | import __main__ |
|
|||
23 |
|
||||
24 | import os |
|
22 | import os | |
25 | import re |
|
23 | import re | |
26 | import sys |
|
|||
27 | import textwrap |
|
24 | import textwrap | |
28 | from string import Formatter |
|
25 | from string import Formatter | |
29 |
|
26 | |||
30 | from IPython.external.path import path |
|
27 | from IPython.external.path import path | |
31 | from IPython.testing.skipdoctest import skip_doctest_py3, skip_doctest |
|
28 | from IPython.testing.skipdoctest import skip_doctest_py3, skip_doctest | |
32 | from IPython.utils import py3compat |
|
29 | from IPython.utils import py3compat | |
33 | from IPython.utils.data import flatten |
|
|||
34 |
|
30 | |||
35 | #----------------------------------------------------------------------------- |
|
31 | #----------------------------------------------------------------------------- | |
36 | # Code |
|
32 | # Code |
@@ -10,7 +10,6 b'' | |||||
10 | # Verify zmq version dependency >= 2.1.11 |
|
10 | # Verify zmq version dependency >= 2.1.11 | |
11 | #----------------------------------------------------------------------------- |
|
11 | #----------------------------------------------------------------------------- | |
12 |
|
12 | |||
13 | import warnings |
|
|||
14 | from IPython.utils.version import check_version |
|
13 | from IPython.utils.version import check_version | |
15 |
|
14 | |||
16 |
|
15 |
General Comments 0
You need to be logged in to leave comments.
Login now