Skip to content

Commit 413e2f9

Browse files
Merge pull request #1008 from A-Baji/mp-test
Multiprocessing test
2 parents 8f14969 + c64d956 commit 413e2f9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
## Release notes
22

3-
### 0.13.4 -- TBA
3+
### 0.13.4 -- March, 25 2022
44
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995
5+
* Bugfix - Add missing `jobs` argument for multiprocessing PR #997
6+
* Add - Test for multiprocessing PR #1008
57
* Bugfix - Fix external store key name doesn't allow '-' (#1005) PR #1006
68

79
### 0.13.3 -- Feb 9, 2022

docs-parts/intro/Releases_lang1.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
0.13.4 -- TBA
1+
0.13.4 -- March 25, 2022
22
----------------------
33
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995
4+
* Bugfix - Add missing ``jobs`` argument for multiprocessing PR #997
5+
* Add - Test for multiprocessing PR #1008
46
* Bugfix - Fix external store key name doesn't allow '-' (#1005) PR #1006
57

68
0.13.3 -- Feb 9, 2022

tests/test_autopopulate.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def test_allow_direct_insert(self):
5757
key['experiment_date'] = '2018-10-30'
5858
self.experiment.insert1(key, allow_direct_insert=True)
5959

60+
def test_multi_processing(self):
61+
assert self.subject, 'root tables are empty'
62+
assert not self.experiment, 'table already filled?'
63+
self.experiment.populate(processes=2)
64+
assert len(self.experiment) == len(self.subject)*self.experiment.fake_experiments_per_subject
65+
6066
@raises(DataJointError)
6167
def test_allow_insert(self):
6268
assert_true(self.subject, 'root tables are empty')

0 commit comments

Comments
 (0)