diff options
| author | Theron Luhn <theron@luhn.com> | 2021-01-15 10:02:08 -0800 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2021-01-15 10:02:08 -0800 |
| commit | 8ac39fbf5058deb70903977072874838be156717 (patch) | |
| tree | 8f2139590146c08136976b7db60de60d0c507ef2 /src | |
| parent | 837358ee6be552fd2f990d1ed8d6ea9e1c98d583 (diff) | |
| download | pyramid-8ac39fbf5058deb70903977072874838be156717.tar.gz pyramid-8ac39fbf5058deb70903977072874838be156717.tar.bz2 pyramid-8ac39fbf5058deb70903977072874838be156717.zip | |
Fix tests.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/router.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pyramid/router.py b/src/pyramid/router.py index 644a6a395..fb3e5fca6 100644 --- a/src/pyramid/router.py +++ b/src/pyramid/router.py @@ -252,8 +252,12 @@ class Router: return response finally: - if request.finished_callbacks: - request._process_finished_callbacks() + self.finish_request(request) + + def finish_request(self, request): + if request.finished_callbacks: + request._process_finished_callbacks() + request.__dict__.pop('context', None) def __call__(self, environ, start_response): """ |
