Commit 95ded539 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'rel/3.9.3' into 'v3.9'

3.9.3

See merge request fsl/fslpy!340
parents e5a2e112 85e84262
Pipeline #14476 passed with stages
in 1 minute and 55 seconds
......@@ -2,6 +2,16 @@ This document contains the ``fslpy`` release history in reverse chronological
order.
3.9.3 (Friday 27th May 2022)
----------------------------
Fixed
^^^^^
* Fixed an issue in the :func:`.func_to_cmd` function (!339).
3.9.2 (Friday 20th May 2022)
----------------------------
......
......@@ -494,7 +494,7 @@ def func_to_cmd(func, args=None, kwargs=None, tmp_dir=None, clean="never", verbo
if kwargs is None:
kwargs = {}
dill_bytes = BytesIO()
dill.dump((func, args, kwargs), dill_bytes)
dill.dump((func, args, kwargs), dill_bytes, recurse=True)
handle, filename = tempfile.mkstemp(prefix=func.__name__ + '_',
suffix='.py',
......
......@@ -47,7 +47,7 @@ import re
import string
__version__ = '3.9.2'
__version__ = '3.9.3'
"""Current version number, as a string. """
......
......@@ -173,22 +173,6 @@ def test_add_to_parser():
assert res_flags[idx + start_index] == part
def myfunc():
print('standard output')
print('standard error', file=sys.stderr)
def test_func_to_cmd():
with fslsub_mockFSLDIR(), tempdir():
cmd = fslsub.func_to_cmd(myfunc, (), {})
jid = fslsub.submit(cmd)
stdout, stderr = fslsub.output(jid)
assert stdout.strip() == 'standard output'
assert stderr.strip() == 'standard error'
example_qstat_reply = """==============================================================
job_number: 9985061
exec_file: job_scripts/9985061
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment