Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bbc696f

Browse files
move loadpkl tests to proper location
1 parent d3a15e9 commit bbc696f

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

‎nipype/tests/test_utils.py‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎nipype/utils/tests/test_filemanip.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,3 +587,13 @@ def test_Path_strict_resolve(tmpdir):
587587
# If the file is created, it should not raise
588588
open('somefile.txt', 'w').close()
589589
assert '%s/somefile.txt' % tmpdir == '%s' % testfile.resolve(strict=True)
590+
591+
592+
@pytest.mark.parametrize("load_versioning", [True, False])
593+
@pytest.mark.parametrize("save_versioning", [True, False])
594+
def test_pickle(tmp_path, save_versioning, load_versioning):
595+
testobj = 'iamateststr'
596+
pickle_fname = str(tmp_path / 'testpickle.pklz')
597+
savepkl(pickle_fname, testobj, versioning=save_versioning)
598+
outobj = loadpkl(pickle_fname, versioning=load_versioning)
599+
assert outobj == testobj

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /