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] Fix saving reports on Python 3.6 #2584

Merged
merged 2 commits into from
Sep 13, 2017
Merged

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Sep 13, 2017

Issue

This is urgent. The current release is broken: Reports cannot be saved because ReportItems (derived from QStandardItem) can't be pickled.

Description of changes

Add ReportItem.__getnewargs__.

I don't have Python 3.6 env on this machine so I ran tests from a bundle. Can somebody with "real" Python 3.6 check this?

Includes
  • Code changes
  • Tests

@janezd
Copy link
Contributor Author

janezd commented Sep 13, 2017

The problem may be caused by this change in Python: https://bugs.python.org/issue22995.

@codecov-io
Copy link

codecov-io commented Sep 13, 2017

Codecov Report

Merging #2584 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2584      +/-   ##
==========================================
- Coverage   75.07%   75.06%   -0.02%     
==========================================
  Files         327      327              
  Lines       57668    57668              
==========================================
- Hits        43297    43289       -8     
- Misses      14371    14379       +8

@janezd
Copy link
Contributor Author

janezd commented Sep 13, 2017

Codecov/patch coverage failed in files unrelated to this PR.

@astaric
Copy link
Member

astaric commented Sep 13, 2017

I have tested on "normal" python 3.6. Test passes, reports can be saved and loaded.

@astaric astaric merged commit 0b448ca into biolab:master Sep 13, 2017
@janezd janezd deleted the fix-report-pickle branch April 5, 2019 17:31
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