mirror of
https://github.com/django/django.git
synced 2025-08-30 15:27:40 +00:00
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
This commit is contained in:
parent
ec4c1d6717
commit
4e729feaa6
64 changed files with 108 additions and 178 deletions
|
@ -3,7 +3,6 @@ import os
|
|||
from django.core.management import call_command
|
||||
from django.test import TestCase, TransactionTestCase
|
||||
from django.test.utils import extend_sys_path
|
||||
from django.utils._os import upath
|
||||
|
||||
from .models import (
|
||||
ConcreteModel, ConcreteModelSubclass, ConcreteModelSubclassProxy,
|
||||
|
@ -20,7 +19,7 @@ class ProxyModelInheritanceTests(TransactionTestCase):
|
|||
available_apps = []
|
||||
|
||||
def test_table_exists(self):
|
||||
with extend_sys_path(os.path.dirname(os.path.abspath(upath(__file__)))):
|
||||
with extend_sys_path(os.path.dirname(os.path.abspath(__file__))):
|
||||
with self.modify_settings(INSTALLED_APPS={'append': ['app1', 'app2']}):
|
||||
call_command('migrate', verbosity=0, run_syncdb=True)
|
||||
from app1.models import ProxyModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue