summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_security.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_security.py b/tests/test_security.py
index 73d8ba6fc..dd5be54d7 100644
--- a/tests/test_security.py
+++ b/tests/test_security.py
@@ -891,6 +891,7 @@ ADMINISTRATOR_PERMS = MODERATOR_PERMS + (ADMINISTER,)
class TestSessionAuthenticationHelper(unittest.TestCase):
def _makeRequest(self, session=None):
from types import SimpleNamespace
+
if session is None:
session = dict()
return SimpleNamespace(session=session)