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 python compatibility test #2647

Merged
merged 1 commit into from Feb 10, 2017
Merged

Fix python compatibility test #2647

merged 1 commit into from Feb 10, 2017

Conversation

anandolee
Copy link
Contributor

Fix python compatibility test when a new generated code public imports an old version(2.6.1 or older) generated code.

@bazel-io
Copy link

Can one of the admins verify this patch?

@anandolee
Copy link
Contributor Author

anandolee commented Feb 6, 2017

Ping @haberman . The failure test CONFIG=php5.6_mac is not related.

printer_->Print("try:\n"
" $alias$ = $copy_from$.$alias$\n"
"except AttributeError:\n"
" $alias$ = $copy_from$.$module$\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment about the scenario where this is required. New generated code importing old generated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks

@haberman
Copy link
Member

haberman commented Feb 9, 2017

LGTM.

@anandolee anandolee merged commit c6e0d0e into protocolbuffers:master Feb 10, 2017
bithium pushed a commit to bithium/protobuf that referenced this pull request Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants