-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Port to Python 3 #49
Port to Python 3 #49
Conversation
… of plone.testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With such a big diff, I can't review details. (Well, I made a few minor comments.) But the general direction seems sane.
""" | ||
setHooks() | ||
site = getSite() | ||
|
||
with z2.zopeApp(db, connection, environ) as app: | ||
with getattr(flavour, 'zopeApp')(db, connection, environ) as app: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say either use flavour.zopeApp
directly, or use getattr
and explicitly handle the case that it falls back to None
.
CHANGES.rst
Outdated
Bug fixes: | ||
|
||
- *add item here* | ||
- *none yet* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick: if you keep * add item *
here, then plone.releaser
can automatically remove it on release, which is what you want here. If you add any other text, then plone.releaser
does not touch it.
Set up plone.testing.z2.Startup in ... seconds. | ||
Set up plone.app.testing.layers.PloneFixture in ... seconds. | ||
>>> runner.setup_layer(options, layers.PLONE_FIXTURE, setupLayers) # doctest: +ELLIPSIS | ||
Set up plone.testing.zca.LayerCleanup in ... seconds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the extra two space indentation intentional?
…d. Porting all tests away from PloneTestCase seems less work that migrating the layer and fixing the tests.
This PR requires that the
py3
branch ofplone.testing
is merged. So It cannot be tested separately against coredev on Jenkins. See plone/buildout.coredev#480 for a test running bothpy3
branches.