Skip to content

Commit

Permalink
Fix DeprecationWarning in tests when accessing collections.abc classe…
Browse files Browse the repository at this point in the history
…s via collections (#6473)
  • Loading branch information
tirkarthi authored and carltongibson committed Feb 25, 2019
1 parent 94fbfcb commit 739b0a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -16,7 +16,7 @@
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,
Expand Down
3 changes: 1 addition & 2 deletions tests/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
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 (
Expand Down

0 comments on commit 739b0a2

Please sign in to comment.