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

Add full Python 3 compatibility #37

Merged
merged 8 commits into from Jul 11, 2017
Merged

Conversation

mauritsvanrees
Copy link
Member

Well... the integration with plone.recipe.zope2instance cannot be tested, because its mailinglogger dependency cannot even be installed on Python 3. See this mailinglogger issue.

I opted to split out the zope2instance related tests to zope2instance.rst and ignore this test file on Python 3. We can revisit this once compatible versions are out. The only integration we have with this recipe, is that we look for a blob_storage option if we do not have one in our own backup section.

Anyway, the rest of the tests now pass. Travis will now test Python 2.6, 2.7, and 3.6.

Until now we created a mock repozo script in most of the test files. Now I do this in the test setup in test_docs.py. I let the repozo script put its output in a temporary file and check the output separately from the buildout output. Until now they were mixed, which gave a different order in Python 2 versus 3.

Share this setup between tests.
This makes the output order the same on Python 2 and 3.

See issue #31.
This reported a different order and under Python 3 contained text marked as b'bytes'.
I had hoped that this version could be installed under Python 3, but unfortunately not.
Still, let's use the latest one, so that others are not left wondering the same thing.
Created new zope2instance.rst file for this, containing what used to be the first part of blob.rst.
zope2instance.rst is expected to fail on Python 3, because mailinglogger is not compatible.
All other test files should pass.
They would need a compatible ``mailinglogger`` package.
See issue #31.
Copy link
Contributor

@gforcada gforcada left a comment

Choose a reason for hiding this comment

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

LGTM, great work!

@gforcada gforcada merged commit a3ccc9d into master Jul 11, 2017
@gforcada gforcada deleted the repozo-output-python-2-3 branch July 11, 2017 15:17
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

2 participants