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

py3: Fix the dynamic tool destination unit test #6453

Merged
merged 1 commit into from Jul 4, 2018

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jul 2, 2018

Strings are greater than Integers in py2, but in py3 the comparison is invalid, so I assume setting the upper bound to float('inf') should be correct. The records rule also accepts file size units, so I guess passing this to str_to_bytes is fine.
Does that make sense @ericenns ?

xref. #1715

@galaxybot galaxybot added this to the 18.09 milestone Jul 2, 2018
@ericenns
Copy link
Contributor

ericenns commented Jul 3, 2018

Looking at the code, we are setting valid_rule to false in that block so setting lower_bound to float('inf') is correct as in that context the rule will never be evaluated.

@nsoranzo nsoranzo merged commit d85b65a into galaxyproject:dev Jul 4, 2018
@nsoranzo nsoranzo deleted the fix_py3_dtd branch July 4, 2018 20:46
@nsoranzo nsoranzo added the area/python3 Specific to Python 3 label May 7, 2020
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