summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGerhard Schmidt <estartu@augusta.de>2018-12-26 09:42:32 +0100
committerGerhard Schmidt <estartu@augusta.de>2018-12-26 09:42:32 +0100
commit42e2a54dff7f879a270f7746afb1e180b387bd3a (patch)
tree694c540ad32903e76d259c675e91f1987d4c354e /src
parentc4c56cc48776dfc079a8f225a0fd38bd740661be (diff)
downloadpyramid-42e2a54dff7f879a270f7746afb1e180b387bd3a.tar.gz
pyramid-42e2a54dff7f879a270f7746afb1e180b387bd3a.tar.bz2
pyramid-42e2a54dff7f879a270f7746afb1e180b387bd3a.zip
principals_allowed_by_permission is described to always return a sequence. Most of the time the result is used with something like Everyone in principals_allowed_by_permission or iterated over. So even if no prinicpal is authorised it should be a sequence regardless.
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/testing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyramid/testing.py b/src/pyramid/testing.py
index 23392772c..6f64e1def 100644
--- a/src/pyramid/testing.py
+++ b/src/pyramid/testing.py
@@ -94,7 +94,7 @@ class DummySecurityPolicy(object):
if self.permissive:
return self.effective_principals(None)
else:
- return None
+ return []
class DummyTemplateRenderer(object):