From 8af47bc6bdc15cacfbe26e0507bd674ebf7ce80f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 6 Apr 2011 15:36:11 -0400 Subject: - ``testing.DummyRequest`` used the wrong registry (the global registry) as ``self.registry`` if a dummy request was created *before* ``testing.setUp`` was executed (``testing.setUp`` pushes a local registry onto the threadlocal stack). Fixed by implementing ``registry`` as a property for DummyRequest instead of eagerly assigning an attribute. See also https://github.com/Pylons/pyramid/issues/165 Closes #165. --- CHANGES.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGES.txt') diff --git a/CHANGES.txt b/CHANGES.txt index 12da3bc06..780df9e8a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -66,6 +66,13 @@ Bug Fixes ``factory=`` to ``add_static_view`` to protect a particular static view with a custom ACL. +- ``testing.DummyRequest`` used the wrong registry (the global registry) as + ``self.registry`` if a dummy request was created *before* ``testing.setUp`` + was executed (``testing.setUp`` pushes a local registry onto the + threadlocal stack). Fixed by implementing ``registry`` as a property for + DummyRequest instead of eagerly assigning an attribute. + See also https://github.com/Pylons/pyramid/issues/165 + 1.0 (2011-01-30) ================ -- cgit v1.2.3