Fixed #10517 -- Corrected cache name for file-based cache tests so that the filename can be valid under Windows. Thanks to Bob Thomas for the report and fix.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2009-03-17 10:40:04 +00:00
parent cf7a3fa7f0
commit 25e1c39bc3
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class FileBasedCacheTests(unittest.TestCase, BaseCacheTests):
""" """
def setUp(self): def setUp(self):
self.dirname = tempfile.mkdtemp() self.dirname = tempfile.mkdtemp()
self.cache = get_cache('file:///%s' % self.dirname) self.cache = get_cache('file://%s' % self.dirname)
def tearDown(self): def tearDown(self):
shutil.rmtree(self.dirname) shutil.rmtree(self.dirname)