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 value field on enum type should be str #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frdeso
Copy link
Contributor

@frdeso frdeso commented Mar 2, 2018

The current implementation returns the integer value of the numeration
but Babeltrace 1.X was returning the text label.

To ensure compatibility with Babeltrace 1.X, when getting the value of
an enum field, return a string containing the corresponding label for
this value.

This commit also adds a test for this behaviour.

Signed-off-by: Francis Deslauriers [email protected]

The current implementation returns the integer value of the numeration
but Babeltrace 1.X was returning the text label.

To ensure compatibility with Babeltrace 1.X, when getting the value of
an enum field, return a string containing the corresponding label for
this value.

This commit also adds a test for this behaviour.

Signed-off-by: Francis Deslauriers <[email protected]>
@frdeso frdeso closed this Mar 2, 2018
@frdeso frdeso reopened this Mar 6, 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.

1 participant