From 183804c747ec465383fac7f57c5b3f61a81fde51 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Wed, 27 Jan 2016 22:20:19 -0600 Subject: set DummySession to use unicode csrf token by default like SignedCookieSessionFactory --- pyramid/testing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyramid/testing.py b/pyramid/testing.py index 58dcb0b59..14432b01f 100644 --- a/pyramid/testing.py +++ b/pyramid/testing.py @@ -16,6 +16,7 @@ from pyramid.compat import ( PY3, PYPY, class_types, + text_, ) from pyramid.config import Configurator @@ -274,7 +275,7 @@ class DummySession(dict): return storage def new_csrf_token(self): - token = '0123456789012345678901234567890123456789' + token = text_('0123456789012345678901234567890123456789') self['_csrft_'] = token return token -- cgit v1.2.3