Show More
@@ -9,10 +9,8 b' import glob' | |||||
9 | import shutil |
|
9 | import shutil | |
10 | import unittest |
|
10 | import unittest | |
11 |
|
11 | |||
12 | import IPython |
|
|||
13 | from IPython.nbformat import v4, write |
|
12 | from IPython.nbformat import v4, write | |
14 | from IPython.utils.tempdir import TemporaryWorkingDirectory |
|
13 | from IPython.utils.tempdir import TemporaryWorkingDirectory | |
15 | from IPython.utils.path import get_ipython_package_dir |
|
|||
16 | from IPython.utils.process import get_output_error_code |
|
14 | from IPython.utils.process import get_output_error_code | |
17 | from IPython.testing.tools import get_ipython_cmd |
|
15 | from IPython.testing.tools import get_ipython_cmd | |
18 |
|
16 | |||
@@ -121,12 +119,11 b' class TestsBase(unittest.TestCase):' | |||||
121 | names = self.__module__.split('.')[1:-1] |
|
119 | names = self.__module__.split('.')[1:-1] | |
122 | names.append('files') |
|
120 | names.append('files') | |
123 |
|
121 | |||
124 |
#Build a path using the |
|
122 | #Build a path using the nbconvert directory and the relative path we just | |
125 | #found. |
|
123 | #found. | |
126 | path = get_ipython_package_dir() |
|
124 | import jupyter_nbconvert | |
127 | for name in names: |
|
125 | path = os.path.dirname(jupyter_nbconvert.__file__) | |
128 |
|
|
126 | return os.path.join(path, *names) | |
129 | return path |
|
|||
130 |
|
127 | |||
131 |
|
128 | |||
132 | def call(self, parameters, ignore_return_code=False): |
|
129 | def call(self, parameters, ignore_return_code=False): |
General Comments 0
You need to be logged in to leave comments.
Login now