Fixed #14271 -- Use absolute path for admin media tests. Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2c9f0b75fb
commit
d8d38ec6e7
|
@ -13,8 +13,9 @@ from django.core.servers.basehttp import AdminMediaHandler
|
||||||
class AdminMediaHandlerTests(TestCase):
|
class AdminMediaHandlerTests(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.admin_media_file_path = \
|
self.admin_media_file_path = os.path.abspath(
|
||||||
os.path.join(django.__path__[0], 'contrib', 'admin', 'media')
|
os.path.join(django.__path__[0], 'contrib', 'admin', 'media')
|
||||||
|
)
|
||||||
self.handler = AdminMediaHandler(WSGIHandler())
|
self.handler = AdminMediaHandler(WSGIHandler())
|
||||||
|
|
||||||
def test_media_urls(self):
|
def test_media_urls(self):
|
||||||
|
|
Loading…
Reference in New Issue