Browse files

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.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d33736b commit 8cd5d283691e5e1005b7cdd18676ce9c6b13a857 @freakboy3742 freakboy3742 committed Aug 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/admin_scripts/
@@ -133,7 +133,7 @@ def run_test(self, script, args, settings_file=None, apps=None):
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,''), args, settings_file)
def run_manage(self, args, settings_file=None):

0 comments on commit 8cd5d28

Please sign in to comment.