summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2013-02-26 15:38:11 +0100
committerFlorian Apolloner <florian@apolloner.eu>2013-02-26 15:38:11 +0100
commit1535fcfdbafc386efe14c0926d53869f03231bc8 (patch)
tree201ce60a045078cbf65cb08bfddfbbec73e8b97f /tests/admin_scripts
parent0dc7ff6b7abc72d9909d93cd05e33f377ba6806c (diff)
fixed admin_scripts tests on python 3.3
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index e96bd440cf..b3d129b304 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -105,7 +105,7 @@ class AdminScriptTestCase(unittest.TestCase):
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 @@ class AdminScriptTestCase(unittest.TestCase):
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)