Author: russellm
Date: 2010-08-20 21:55:02 -0500 (Fri, 20 Aug 2010)
New Revision: 13618
Modified:
django/trunk/tests/regressiontests/admin_scripts/tests.py
Log:
Fixed #14148 -- Ensure the admin_script tests always use an absolute path; PyPy
(and sometimes CPython) return relative paths for __file__. Thanks to Alex
Gaynor for the report and patch.
Modified: django/trunk/tests/regressiontests/admin_scripts/tests.py
===================================================================
--- django/trunk/tests/regressiontests/admin_scripts/tests.py 2010-08-20
15:06:09 UTC (rev 13617)
+++ django/trunk/tests/regressiontests/admin_scripts/tests.py 2010-08-21
02:55:02 UTC (rev 13618)
@@ -133,7 +133,7 @@
return out, err
def run_django_admin(self, args, settings_file=None):
- bin_dir = os.path.dirname(bin.__file__)
+ bin_dir = os.path.abspath(os.path.dirname(bin.__file__))
return self.run_test(os.path.join(bin_dir,'django-admin.py'), args,
settings_file)
def run_manage(self, args, settings_file=None):
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.