Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed admin_scripts tests on python 3.3

  • Loading branch information...
commit 1535fcfdbafc386efe14c0926d53869f03231bc8 1 parent 0dc7ff6
@apollo13 apollo13 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/admin_scripts/tests.py
View
4 tests/admin_scripts/tests.py
@@ -105,7 +105,7 @@ def _ext_backend_paths(self):
def run_test(self, script, args, settings_file=None, apps=None):
project_dir = test_dir
- base_dir = os.path.dirname(project_dir)
+ base_dir = os.path.dirname(test_dir)
import django
django_dir = os.path.dirname(os.path.dirname(django.__file__))
tests_dir = os.path.join(django_dir, 'tests')
@@ -126,7 +126,7 @@ def run_test(self, script, args, settings_file=None, apps=None):
os.environ['DJANGO_SETTINGS_MODULE'] = settings_file
elif 'DJANGO_SETTINGS_MODULE' in os.environ:
del os.environ['DJANGO_SETTINGS_MODULE']
- python_path = [project_dir, base_dir, django_dir, tests_dir]
+ python_path = [base_dir, django_dir, tests_dir]
python_path.extend(ext_backend_base_dirs)
os.environ[python_path_var_name] = os.pathsep.join(python_path)
Please sign in to comment.
Something went wrong with that request. Please try again.