Skip to content

Fix deprecation warnings.#126

Merged
mauritsvanrees merged 1 commit into
masterfrom
maurits-deprecated
Jun 8, 2026
Merged

Fix deprecation warnings.#126
mauritsvanrees merged 1 commit into
masterfrom
maurits-deprecated

Conversation

@mauritsvanrees

Copy link
Copy Markdown
Member

Use plone.base.utils instead of Products.CMFPlone.utils when deprecated. No longer pass deprecated setup_content=False to addPloneSite call.

Sample warning for the last one:

Set up plone.app.testing.layers.PloneFixture
.../Products/CMFPlone/factory.py:176:
DeprecationWarning:
addPloneSite ignores the setup_content keyword argument since Plone 6.1,
treating it as always False. In Plone 7 it will be removed.

@mister-roboto

Copy link
Copy Markdown

@mauritsvanrees thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

Use `plone.base.utils` instead of `Products.CMFPlone.utils` when deprecated.
No longer pass deprecated `setup_content=False` to `addPloneSite` call.

Sample warning for the last one:

```
Set up plone.app.testing.layers.PloneFixture
.../Products/CMFPlone/factory.py:176:
DeprecationWarning:
addPloneSite ignores the setup_content keyword argument since Plone 6.1,
treating it as always False. In Plone 7 it will be removed.
```
@mauritsvanrees

Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

@mauritsvanrees
mauritsvanrees merged commit 941a26e into master Jun 8, 2026
14 checks passed
@mauritsvanrees
mauritsvanrees deleted the maurits-deprecated branch June 8, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants