summaryrefslogtreecommitdiff
path: root/tests/serializers/test_yaml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/serializers/test_yaml.py')
-rw-r--r--tests/serializers/test_yaml.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/serializers/test_yaml.py b/tests/serializers/test_yaml.py
index 038227efea..f3988d7ff1 100644
--- a/tests/serializers/test_yaml.py
+++ b/tests/serializers/test_yaml.py
@@ -4,7 +4,6 @@ import unittest
from django.core import management, serializers
from django.core.serializers.base import DeserializationError
from django.test import SimpleTestCase, TestCase, TransactionTestCase
-from django.utils import six
from django.utils.six import StringIO
from .models import Author
@@ -147,7 +146,7 @@ class YamlSerializerTestCase(SerializersTestBase, TestCase):
# yaml.safe_load will return non-string objects for some
# of the fields we are interested in, this ensures that
# everything comes back as a string
- if isinstance(field_value, six.string_types):
+ if isinstance(field_value, str):
ret_list.append(field_value)
else:
ret_list.append(str(field_value))