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 type of return value of extra_options as it was before, enhance unit tests #894

Merged
merged 2 commits into from
Mar 25, 2014

Conversation

boegel
Copy link
Member

@boegel boegel commented Mar 25, 2014

No description provided.

@boegel
Copy link
Member Author

boegel commented Mar 25, 2014

@stdweird: please review?

extra = dict(extra)

# to avoid breaking backward compatibility, we still need to return a list of tuples in EasyBuild v1.x
return extra.items()
Copy link
Contributor

Choose a reason for hiding this comment

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

actually returning a list itself should also deprecated. dunno if we can access the deprecation logic that easy.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can do something like this:

self.log.deprecated("return list of tuples rather than a dict")  # FIXME proper log message
res = extra.items()

return res

Would that be sufficient?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, if you use _log.deprecated(..., '2.0')

@boegel
Copy link
Member Author

boegel commented Mar 25, 2014

@stdweird: fixed remarks

@boegel
Copy link
Member Author

boegel commented Mar 25, 2014

Jenkins is happy, so merging this in, thanks for the review @stdweird!

boegel added a commit that referenced this pull request Mar 25, 2014
fix type of return value of extra_options as it was before, enhance unit tests
@boegel boegel merged commit 3cfd8c9 into easybuilders:develop Mar 25, 2014
@boegel boegel deleted the fix_extra_options_return_type branch March 25, 2014 19:33
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.

2 participants