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