From 25e1c39bc35fdc013627fa29c8c6cf24fc705fe1 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 17 Mar 2009 10:40:04 +0000 Subject: [PATCH] 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 --- tests/regressiontests/cache/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/cache/tests.py b/tests/regressiontests/cache/tests.py index 4100a8cb1d..fe365f9097 100644 --- a/tests/regressiontests/cache/tests.py +++ b/tests/regressiontests/cache/tests.py @@ -265,7 +265,7 @@ class FileBasedCacheTests(unittest.TestCase, BaseCacheTests): """ def setUp(self): self.dirname = tempfile.mkdtemp() - self.cache = get_cache('file:///%s' % self.dirname) + self.cache = get_cache('file://%s' % self.dirname) def tearDown(self): shutil.rmtree(self.dirname)