remove stdinfo

This commit is contained in:
Kay0u 2021-01-26 16:38:36 +01:00
parent 6c61b9cceb
commit 63ae3b677f
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ def call_async_output(args, callback, **kwargs):
Exit status of the command Exit status of the command
""" """
for a in ["stdout", "stderr", "stdinfo"]: for a in ["stdout", "stderr"]:
if a in kwargs: if a in kwargs:
raise ValueError("%s argument not allowed, " "it will be overridden." % a) raise ValueError("%s argument not allowed, " "it will be overridden." % a)

View file

@ -109,7 +109,7 @@ def test_call_async_output_kwargs(test_file, mocker):
call_async_output(["cat", str(test_file)], callbacks, stdout=None) call_async_output(["cat", str(test_file)], callbacks, stdout=None)
with pytest.raises(ValueError): with pytest.raises(ValueError):
call_async_output(["cat", str(test_file)], callbacks, stderr=None) call_async_output(["cat", str(test_file)], callbacks, stderr=None)
with pytest.raises(ValueError): with pytest.raises(TypeError):
call_async_output(["cat", str(test_file)], callbacks, stdinfo=None) call_async_output(["cat", str(test_file)], callbacks, stdinfo=None)
dirname = os.path.dirname(str(test_file)) dirname = os.path.dirname(str(test_file))