summaryrefslogtreecommitdiff
path: root/tests/user_commands
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-20 08:01:02 -0500
committerGitHub <noreply@github.com>2017-01-20 08:01:02 -0500
commit4e729feaa647547f25debb1cb63dec989dc41a20 (patch)
tree7c7a38c5961bf4daf98a8cb47dc74c769563ffcf /tests/user_commands
parentec4c1d6717da7a9d09d5b3ce84cccac819bb592c (diff)
downloaddjango-4e729feaa647547f25debb1cb63dec989dc41a20.tar.gz
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
Diffstat (limited to 'tests/user_commands')
-rw-r--r--tests/user_commands/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py
index cfc4f5fb2e..a18d49868b 100644
--- a/tests/user_commands/tests.py
+++ b/tests/user_commands/tests.py
@@ -11,7 +11,6 @@ from django.db import connection
from django.test import SimpleTestCase, mock, override_settings
from django.test.utils import captured_stderr, extend_sys_path
from django.utils import translation
-from django.utils._os import upath
from .management.commands import dance
@@ -92,7 +91,7 @@ class CommandTests(SimpleTestCase):
"""
Management commands can also be loaded from Python eggs.
"""
- egg_dir = '%s/eggs' % os.path.dirname(upath(__file__))
+ egg_dir = '%s/eggs' % os.path.dirname(__file__)
egg_name = '%s/basic.egg' % egg_dir
with extend_sys_path(egg_name):
with self.settings(INSTALLED_APPS=['commandegg']):