Skip to content
Myr

Just in case there is no gc module.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 15e69b3 · Browse files · 1 file+7 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−2 removed

  • other:+7 added−2 removed

1 file+7 added−2 removed

modified:jinja2/testsuite/loader.py+7 added-2 removed
7 unmodified lines
8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import os12import gc12import sys13import time14import tempfile15import unittest
116 unmodified lines
132 assert name in sys.modules133134 # unset all, ensure the module is gone from sys.modules135 self.mod_env = tmpl = None136137 try:138 import gc137 gc.collect()139 gc.collect()140 except:141 pass142143 assert name not in sys.modules144145146def suite():
4 unmodified lines