-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
KeyError: 'portal' in tests with Python 3.12.1 #1740
Comments
@Akshat2Jain can you please create a PR for this? |
sorry @wesleybl for the late response, I have exams going on at my school! :( |
I do not think this has to do with zopefoundation/Zope#1188. (There we see another traceback.) |
@icemac you are right. I pinned zope.testrunner = 6.2.1 and the same error occurred. Maybe something needs to be changed in plone.app.testing. @mauritsvanrees FYI. |
@wesleybl It looks like this could happen if there was actually an error while setting up the test, so that Probably that testTearDown method should be a bit more careful. But, will that reveal the original error, or is it swallowed? I'm not sure. |
I did some debugging; this is related to python/cpython#113267 |
Reopening since we worked around the issue rather than solving it |
@davisagli while python/cpython#113267 is not fixed, we can make a test here to make sure the |
@wesleybl I started to do that, but then found that other similar fixes were needed for other layer resources. |
Tests with Python 3.12.1 are failing:
See: https://github.com/plone/plone.restapi/actions/runs/7232945652/job/19707677378
When the tests were run with Python 3.12.0 they worked:
https://github.com/plone/plone.restapi/actions/runs/6999363538/job/19038558131#step:3:13
This appears to be related to: zopefoundation/Zope#1188
I suggest forcing the tests to run with Python 3.12.0, as long as the problem is not fixed.
The text was updated successfully, but these errors were encountered: