give request a registry = None clasattr so registry can successfully be passed as a kwarg to the Request constructor
pyramid/request.py @@ -206,6 +206,7 @@ exception = None matchdict = None matched_route = None registry = None @reify def tmpl_context(self):