Skip to content

Commit 739b0a2

Browse files
tirkarthicarltongibson
authored andcommitted
Fix DeprecationWarning in tests when accessing collections.abc classes via collections (encode#6473)
1 parent 94fbfcb commit 739b0a2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: tests/test_renderers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import unicode_literals
33

44
import re
5-
from collections import MutableMapping, OrderedDict
5+
from collections import OrderedDict
66

77
import pytest
88
from django.conf.urls import include, url
@@ -16,7 +16,7 @@
1616
from django.utils.translation import ugettext_lazy as _
1717

1818
from rest_framework import permissions, serializers, status
19-
from rest_framework.compat import coreapi
19+
from rest_framework.compat import MutableMapping, coreapi
2020
from rest_framework.decorators import action
2121
from rest_framework.renderers import (
2222
AdminRenderer, BaseRenderer, BrowsableAPIRenderer, DocumentationRenderer,

Diff for: tests/test_serializer.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
import pickle
66
import re
77
import unittest
8-
from collections import Mapping
98

109
import pytest
1110
from django.db import models
1211

1312
from rest_framework import exceptions, fields, relations, serializers
14-
from rest_framework.compat import unicode_repr
13+
from rest_framework.compat import Mapping, unicode_repr
1514
from rest_framework.fields import Field
1615

1716
from .models import (

0 commit comments

Comments
 (0)