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 all remaining unit tests under Python 3 #6450

Merged
merged 37 commits into from
Jul 5, 2018

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jul 2, 2018

xref. #1715

@mvdbeek
Copy link
Member Author

mvdbeek commented Jul 3, 2018

I think all unit tests should be passing now, and I even managed to run a couple of tools successfully!

@mvdbeek mvdbeek force-pushed the py3_workflow_and_tool_unit_fixes branch from 6c7773c to 25d871a Compare July 3, 2018 13:01
@@ -1546,7 +1546,7 @@ def check_limits(self, runtime=None):
return None

def has_limits(self):
has_output_limit = self.app.job_config.limits.output_size > 0
has_output_limit = self.app.job_config.limits.output_size and self.app.job_config.limits.output_size > 0
Copy link
Member

Choose a reason for hiding this comment

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

Need to do the same at line 1533

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, done that in aaf968c

@mvdbeek
Copy link
Member Author

mvdbeek commented Jul 3, 2018

Hmm, the failing tests in https://travis-ci.org/mvdbeek/galaxy/jobs/399571214 pass fine locally, but I'm running 3.6 instead of 3.4 ... do you think it's worth switching travis to 3.6 ?

@mvdbeek mvdbeek force-pushed the py3_workflow_and_tool_unit_fixes branch from aaf968c to 0cc6fe3 Compare July 3, 2018 13:42
@nsoranzo nsoranzo force-pushed the py3_workflow_and_tool_unit_fixes branch 2 times, most recently from ca4fbeb to 58a4518 Compare July 3, 2018 18:53
@@ -26,7 +26,7 @@
from galaxy.util import stringify_dictionary_keys

# ensure supported version
assert sys.version_info[:2] >= (2, 6) and sys.version_info[:2] <= (2, 7), 'Python version must be 2.6 or 2.7, this is: %s' % sys.version
assert sys.version_info[:2] >= (2, 7) and sys.version_info[:2] <= (3, 7), 'Python version must be at least 2.7, this is: %s' % sys.version
Copy link
Member

Choose a reason for hiding this comment

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

Can we just drop the sys.version_info[:2] <= () ?

@nsoranzo nsoranzo force-pushed the py3_workflow_and_tool_unit_fixes branch from 2e9c123 to 73e98cd Compare July 4, 2018 10:49
@nsoranzo
Copy link
Member

nsoranzo commented Jul 4, 2018

@natefoo Can you help with the last remaining unit test error which involves lib/galaxy/containers/docker_swarm.py ?

@mvdbeek mvdbeek force-pushed the py3_workflow_and_tool_unit_fixes branch from a2a4519 to 4ae2d97 Compare July 4, 2018 12:49
@nsoranzo nsoranzo force-pushed the py3_workflow_and_tool_unit_fixes branch 2 times, most recently from eef2d4d to 256f569 Compare July 4, 2018 21:01
@nsoranzo nsoranzo changed the title WIP: Py3 workflow and tool unit fixes Fix all remaining unit tests under Python 3 Jul 4, 2018
@nsoranzo nsoranzo added this to the 18.09 milestone Jul 4, 2018
@nsoranzo nsoranzo force-pushed the py3_workflow_and_tool_unit_fixes branch from 256f569 to d15b6cc Compare July 5, 2018 01:52
@nsoranzo
Copy link
Member

nsoranzo commented Jul 5, 2018

All green!

@jmchilton jmchilton merged commit e33427a into galaxyproject:dev Jul 5, 2018
@@ -34,7 +34,6 @@ matrix:
- env: TOX_ENV=py34-unit
addons: *py3_addons
allow_failures:
- env: TOX_ENV=py34-unit
Copy link
Member

Choose a reason for hiding this comment

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

🎉

@nsoranzo nsoranzo deleted the py3_workflow_and_tool_unit_fixes branch July 6, 2018 17:45
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants