Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX globals for functions defined in __main__ #188

Merged
merged 7 commits into from
Aug 23, 2018

Conversation

tomMoral
Copy link
Contributor

Fix #187

The cause of this issue is that global variables defined in __main__ are not shared by unpickled functions and their value are overwritten at each unpickling.

@codecov-io
Copy link

codecov-io commented Aug 15, 2018

Codecov Report

Merging #188 into master will increase coverage by 0.58%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #188      +/-   ##
==========================================
+ Coverage   84.09%   84.68%   +0.58%     
==========================================
  Files           1        1              
  Lines         547      555       +8     
  Branches       99      104       +5     
==========================================
+ Hits          460      470      +10     
+ Misses         63       62       -1     
+ Partials       24       23       -1
Impacted Files Coverage Δ
cloudpickle/cloudpickle.py 84.68% <100%> (+0.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5141802...d2e879b. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants