summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-04-30 07:11:47 -0400
committerTim Graham <timograham@gmail.com>2015-04-30 07:48:21 -0400
commit29e90f3ae0b0b72bbdf342e0136414bff917c6a6 (patch)
treeecd25789b65277d1d7c8b2568a86d05ccaa095fb
parent63f9b633f9cb620a4c4764b47dca127706a8d7b4 (diff)
Fixed model_regress test failure on non-ASCII path; refs #24717.
-rw-r--r--tests/model_regress/test_pickle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/model_regress/test_pickle.py b/tests/model_regress/test_pickle.py
index c7804d805e..517646c407 100644
--- a/tests/model_regress/test_pickle.py
+++ b/tests/model_regress/test_pickle.py
@@ -8,7 +8,7 @@ import warnings
from django.core.files.temp import NamedTemporaryFile
from django.db import DJANGO_VERSION_PICKLE_KEY, models
from django.test import TestCase, mock
-from django.utils._os import upath
+from django.utils._os import npath, upath
from django.utils.encoding import force_text
from django.utils.version import get_version
@@ -90,7 +90,7 @@ print(article.headline)"""
model_regress_path = os.path.abspath(model_regress_dir)
tests_path = os.path.split(model_regress_path)[0]
pythonpath = os.environ.get('PYTHONPATH', '')
- pythonpath = os.pathsep.join([tests_path, pythonpath])
+ pythonpath = npath(os.pathsep.join([tests_path, pythonpath]))
with mock.patch.dict('os.environ', {'PYTHONPATH': pythonpath}):
try: