aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2008-05-03 17:55:52 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2008-05-03 17:55:52 +0000
commit4cb8f9747edd954a494d663be7819ea16625fd9a (patch)
treedffe36e8d5784bf12e87d5ac1af2e79fde1c03f0
parentb1c4f2d170e7e12ebfae7817f884fa3648bca600 (diff)
downloadexternal_python_mako-4cb8f9747edd954a494d663be7819ea16625fd9a.tar.gz
external_python_mako-4cb8f9747edd954a494d663be7819ea16625fd9a.tar.bz2
external_python_mako-4cb8f9747edd954a494d663be7819ea16625fd9a.zip
merge r360 from branches/jython
-rw-r--r--test/cache.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/cache.py b/test/cache.py
index 45674da..a1d7f8c 100644
--- a/test/cache.py
+++ b/test/cache.py
@@ -1,11 +1,16 @@
from mako.template import Template
from mako.lookup import TemplateLookup
from mako import lookup
-import unittest, os
+import shutil, unittest, os
from util import result_lines
if not os.access('./test_htdocs', os.F_OK):
os.mkdir('./test_htdocs')
+for cache_dir in ('container_dbm', 'container_dbm_lock', 'container_file',
+ 'container_file_lock'):
+ fullpath = os.path.join('./test_htdocs', cache_dir)
+ if os.path.exists(fullpath):
+ shutil.rmtree(fullpath)
class MockCache(object):
def __init__(self, realcache):