Show More
@@ -6,6 +6,7 | |||||
6 | #----------------------------------------------------------------------------- |
|
6 | #----------------------------------------------------------------------------- | |
7 |
|
7 | |||
8 | import os |
|
8 | import os | |
|
9 | import sys | |||
9 | import unittest |
|
10 | import unittest | |
10 | import base64 |
|
11 | import base64 | |
11 |
|
12 | |||
@@ -16,7 +17,6 from IPython.utils.tempdir import NamedFileInTemporaryDirectory | |||||
16 | from IPython.testing.tools import monkeypatch |
|
17 | from IPython.testing.tools import monkeypatch | |
17 | from IPython.testing.decorators import skip_without |
|
18 | from IPython.testing.decorators import skip_without | |
18 | from IPython.utils.ipstruct import Struct |
|
19 | from IPython.utils.ipstruct import Struct | |
19 | from IPython.utils.process import find_cmd |
|
|||
20 |
|
20 | |||
21 |
|
21 | |||
22 | SCRIPT_PATH = os.path.join( |
|
22 | SCRIPT_PATH = os.path.join( | |
@@ -71,7 +71,7 class ZMQTerminalInteractiveShellTestCase(unittest.TestCase): | |||||
71 | assert hasattr(shell, funcname) |
|
71 | assert hasattr(shell, funcname) | |
72 |
|
72 | |||
73 | with NamedFileInTemporaryDirectory('data') as file: |
|
73 | with NamedFileInTemporaryDirectory('data') as file: | |
74 |
cmd = [ |
|
74 | cmd = [sys.executable, SCRIPT_PATH, inpath, file.name] | |
75 | setattr(shell, configname, cmd) |
|
75 | setattr(shell, configname, cmd) | |
76 | getattr(shell, funcname)(self.data, self.mime) |
|
76 | getattr(shell, funcname)(self.data, self.mime) | |
77 | transferred = file.read() |
|
77 | transferred = file.read() |
General Comments 0
You need to be logged in to leave comments.
Login now