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 bug in mixins.py when copying node #1743

Merged
merged 1 commit into from
Jul 12, 2018
Merged

fix bug in mixins.py when copying node #1743

merged 1 commit into from
Jul 12, 2018

Conversation

zhubonan
Copy link
Contributor

_sealed attribute is not copied in superclass Node.copy() method and but here it tries to delete it again, which throws an AttributeError exception. We should use clone._iter_updatable_attributes() instead for deleting unwanted updatable attributes of the clone.

`_sealed` attribute is not copied in superclass `Node.copy()` method and but here it tries to delete it again, which throws an `AttributeError` exception. We should use `clone._iter_updatable_attributes()` instead for deleting unwanted updatable attributes of the _clone_.
@codecov-io
Copy link

Codecov Report

Merging #1743 into release_v0.12.2 will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff                @@
##           release_v0.12.2    #1743   +/-   ##
================================================
  Coverage            54.65%   54.65%           
================================================
  Files                  246      246           
  Lines                32423    32423           
================================================
  Hits                 17721    17721           
  Misses               14702    14702
Impacted Files Coverage Δ
aiida/orm/mixins.py 97.5% <100%> (ø) ⬆️

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 c3cdcf6...67f2da7. Read the comment docs.

@DropD DropD merged commit b9b930c into aiidateam:release_v0.12.2 Jul 12, 2018
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