diff options
| -rw-r--r-- | CHANGES.txt | 3 | ||||
| -rw-r--r-- | pyramid/testing.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 73f0b3d4b..d8853593b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,9 @@ Features change designed to provide a facade that will protect against any future Configurator deprecations. +- Add ``charset`` attribute to ``pyramid.testing.DummyRequest`` + (unconditionally ``UTF-8``). + Paster Templates ---------------- diff --git a/pyramid/testing.py b/pyramid/testing.py index 5df833634..17012785b 100644 --- a/pyramid/testing.py +++ b/pyramid/testing.py @@ -566,6 +566,7 @@ class DummyRequest(object): content_length = 0 query_string = '' response_callbacks = () + charset = 'UTF-8' def __init__(self, params=None, environ=None, headers=None, path='/', cookies=None, post=None, **kw): if environ is None: |
