Fixed error where filter args was consuming kwargs#750
Fixed error where filter args was consuming kwargs#750ogrisel merged 6 commits intojoblib:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #750 +/- ##
=========================================
+ Coverage 95.25% 95.36% +0.1%
=========================================
Files 43 43
Lines 6197 6208 +11
=========================================
+ Hits 5903 5920 +17
+ Misses 294 288 -6
Continue to review full report at Codecov.
|
|
Good point, I ran a git bisect and it is another regression in 0.12 following the I have to say I don't really understand why filter_args was modifying its |
|
Yep. I'll take a look later today at the tests. |
|
Now with regression tests against the end-to-end pytest output before fix: pytest output after fix: |
|
I'd have written some more extensive tests, but |
ogrisel
left a comment
There was a problem hiding this comment.
Thanks for the non-regression tests. I have reworded them a bit and added an entry to the changelog. I will merge as soon as CI is green.
* tag '0.12.3': (23 commits) Release 0.12.3 Loky 2.2.1 (joblib#760) FIX: FileSystemStoreBackend string representation only returning location (path) (joblib#765) Add optional dependency on psutil MAINT remove brittle time based assertion in test (joblib#761) Fix a bug in nesting level computation with FallbackToBackend(SequentialBackend()) (joblib#759) Make docstring more consistent with project style Improved performance of call_and_shelve (joblib#757) Better test name Fix default context handling (joblib#754) cloudpickle 0.5.5 (joblib#756) Fixed error where filter args was consuming kwargs (joblib#750) FIX pickle roundtrip for Memory and related classes. (joblib#746) test that passes but timeout appveyor because of unclosed semaphore tracker (joblib#676) DOC: fine tune compressor example dataset size for ReadTheDocs (joblib#753) FIX: MemorizedResult not picklable (joblib#752) [MRG] Better message with py27 when lz4 is not installed (joblib#740) MNT remove mutable default value for backend_options parameter (joblib#748) MNT create test file for _store_backends module (joblib#749) DOC consistently use memory rather than mem in memory.rst (joblib#744) ...
* releases: (23 commits) Release 0.12.3 Loky 2.2.1 (joblib#760) FIX: FileSystemStoreBackend string representation only returning location (path) (joblib#765) Add optional dependency on psutil MAINT remove brittle time based assertion in test (joblib#761) Fix a bug in nesting level computation with FallbackToBackend(SequentialBackend()) (joblib#759) Make docstring more consistent with project style Improved performance of call_and_shelve (joblib#757) Better test name Fix default context handling (joblib#754) cloudpickle 0.5.5 (joblib#756) Fixed error where filter args was consuming kwargs (joblib#750) FIX pickle roundtrip for Memory and related classes. (joblib#746) test that passes but timeout appveyor because of unclosed semaphore tracker (joblib#676) DOC: fine tune compressor example dataset size for ReadTheDocs (joblib#753) FIX: MemorizedResult not picklable (joblib#752) [MRG] Better message with py27 when lz4 is not installed (joblib#740) MNT remove mutable default value for backend_options parameter (joblib#748) MNT create test file for _store_backends module (joblib#749) DOC consistently use memory rather than mem in memory.rst (joblib#744) ...
Fix #751.
Anytime unique args were treated as kwargs, joblib was failing. For instance
This fixes the error by not consuming kwargs during
func_inspect.filter_args.