Fix DeprecationWarning in tests when accessing collections.abc classes via collections (#6473)

This commit is contained in:
Xtreak 2019-02-25 19:52:45 +05:30 committed by Carlton Gibson
parent 94fbfcb6fd
commit 739b0a272a
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
from __future__ import unicode_literals
import re
from collections import MutableMapping, OrderedDict
from collections import OrderedDict
import pytest
from django.conf.urls import include, url
@ -16,7 +16,7 @@ from django.utils.safestring import SafeText
from django.utils.translation import ugettext_lazy as _
from rest_framework import permissions, serializers, status
from rest_framework.compat import coreapi
from rest_framework.compat import MutableMapping, coreapi
from rest_framework.decorators import action
from rest_framework.renderers import (
AdminRenderer, BaseRenderer, BrowsableAPIRenderer, DocumentationRenderer,

View File

@ -5,13 +5,12 @@ import inspect
import pickle
import re
import unittest
from collections import Mapping
import pytest
from django.db import models
from rest_framework import exceptions, fields, relations, serializers
from rest_framework.compat import unicode_repr
from rest_framework.compat import Mapping, unicode_repr
from rest_framework.fields import Field
from .models import (