projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e69b3
)
Just in case there is no gc module.
author
Armin Ronacher
<armin.ronacher@active-4.com>
Fri, 12 Mar 2010 02:37:03 +0000
(
03:37
+0100)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Fri, 12 Mar 2010 02:37:03 +0000
(
03:37
+0100)
--HG--
branch : trunk
jinja2/testsuite/loader.py
patch
|
blob
|
history
diff --git
a/jinja2/testsuite/loader.py
b/jinja2/testsuite/loader.py
index a46bda21b8fed00ff0ab92e35b93c0b0a82fba5f..e6a552a038c54354956199f25addaed546a1810c 100644
(file)
--- a/
jinja2/testsuite/loader.py
+++ b/
jinja2/testsuite/loader.py
@@
-9,7
+9,6
@@
:license: BSD, see LICENSE for more details.
"""
import os
-import gc
import sys
import time
import tempfile
@@
-134,7
+133,13
@@
class ModuleLoaderTestCase(JinjaTestCase):
# unset all, ensure the module is gone from sys.modules
self.mod_env = tmpl = None
- gc.collect()
+
+ try:
+ import gc
+ gc.collect()
+ except:
+ pass
+
assert name not in sys.modules