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

clone_dependant() fakes cloning #4

Closed
denisSurkov opened this issue Mar 14, 2020 · 1 comment
Closed

clone_dependant() fakes cloning #4

denisSurkov opened this issue Mar 14, 2020 · 1 comment

Comments

@denisSurkov
Copy link
Contributor

denisSurkov commented Mar 14, 2020

The problem:
clone_dependant() seems to copy the dependant, but it's not. When you try to append something to cloned dependant's fields you edit the original fields too.

cloned_dependant = clone_dependant(original_dependant)

original_dependant.body_params.append("some value that should be in copied")
assert cloned_dependant.body_params == ["some path"]  # fails
@denisSurkov denisSurkov changed the title clone_dependant() doesnt clone clone_dependant() fakes cloning Mar 14, 2020
@spumer
Copy link
Collaborator

spumer commented May 17, 2023

Looks like obsolete. Waiting for use-case to reopen issue

@spumer spumer closed this as completed May 17, 2023
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

No branches or pull requests

2 participants