From a18e0e489fe7a770c62fca510a4299886b0a9bb7 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 12 Jun 2016 21:08:33 -0500 Subject: [PATCH] why is session.forget not callable in tests? --- gluon/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 48165799..8eb6e74e 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -6234,7 +6234,8 @@ class Expose(object): and file creation under `base`. """ - current.session and current.session.forget() + # why would this not be callable? but otherwise tests do not pass + if current.session and callable(current.session.forget): current.session.forget() self.follow_symlink_out = follow_symlink_out self.base = self.normalize_path( base or os.path.join(current.request.folder, 'static'))