Skip to content

Commit 1704b99

Browse files
Fix test_parallel_execution and add a little check on the output
1 parent e86ded2 commit 1704b99

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_self.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,19 @@ def test_no_out_encoding(self):
243243
)
244244

245245
def test_parallel_execution(self):
246+
out = StringIO()
246247
self._runtest(
247248
[
248249
"-j 2",
249250
join(HERE, "functional", "a", "arguments.py"),
250-
join(HERE, "functional", "a", "arguments.py"),
251251
],
252+
out=out,
252253
# We expect similarities to fail and an error
253-
code=MSG_TYPES_STATUS["R"] | MSG_TYPES_STATUS["E"],
254+
code=MSG_TYPES_STATUS["E"],
255+
)
256+
assert (
257+
"Unexpected keyword argument 'fourth' in function call"
258+
in out.getvalue().strip()
254259
)
255260

256261
def test_parallel_execution_missing_arguments(self):

0 commit comments

Comments
 (0)