Skip to content

Commit

Permalink
Merge 57b878b into 690300e
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Oct 30, 2020
2 parents 690300e + 57b878b commit 9cfb55b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions news/72.bugfix
@@ -0,0 +1 @@
Before trying to load the zcml of plone.app.folder, double check if it is a real package or an alias provided by plone.app.upgrade
8 changes: 5 additions & 3 deletions src/plone/app/testing/layers.py
Expand Up @@ -75,9 +75,11 @@ class PloneFixture(Layer):
try:
# Since gopipindex moved to plone.folder only with Archetypes
import plone.app.folder
products += (
('plone.app.folder', {'loadZCML': True}, ),
)
# Prevent trying to load plone.app.folder if it is a module alias
if hasattr(plone.app.folder, "__file__"):
products += (
('plone.app.folder', {'loadZCML': True}, ),
)
except ImportError:
pass

Expand Down

0 comments on commit 9cfb55b

Please sign in to comment.