Skip to content

Commit 46623d2

Browse files
author
Dorian Birraux
committed
refactor
1 parent 811c08a commit 46623d2

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

wolframclient/cli/commands/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def dependencies():
1818
yield "pyzmq"
1919
yield "requests"
2020
yield "unittest-xml-reporting"
21-
yield 'certifi>=2017.4.17'
21+
yield "certifi>=2017.4.17"
22+
2223

2324
class Command(SimpleCommand):
2425
""" Run test suites from the tests modules.

wolframclient/cli/commands/start_externalevaluate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ def handle(self, port=None, installpath=None, **opts):
2424
try:
2525
zmq.Context
2626
except ImportError as e:
27-
print("Error importing zmq: %s. Please install zmq. https://zeromq.org/languages/python/" % e, file=sys.stderr)
27+
print(
28+
"Error importing zmq: %s. Please install zmq. https://zeromq.org/languages/python/"
29+
% e,
30+
file=sys.stderr,
31+
)
2832
sys.stderr.flush()
2933
sys.exit(1)
3034

wolframclient/tests/externalevaluate/ev_loop.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,12 @@
33
from threading import Thread
44

55
import zmq
6+
67
from wolframclient.language import wl
78
from wolframclient.serializers import export
89
from wolframclient.utils.externalevaluate import EXPORT_KWARGS, start_zmq_loop
910
from wolframclient.utils.tests import TestCase as BaseTestCase
1011

11-
STRING = "foo"
12-
STRING_NEWLINE = "abc\nABC"
13-
STRING_MULTILINE = """first
14-
second
15-
third
16-
"""
17-
18-
1912
class TestCase(BaseTestCase):
2013
def compare(self, string_version, result):
2114
self.assertEqual(string_version, export(result, **EXPORT_KWARGS))
@@ -42,4 +35,3 @@ def threaded_function(port=port, message_limit=len(messages)):
4235
msg = client.recv()
4336

4437
self.compare(msg, result)
45-

0 commit comments

Comments
 (0)