summaryrefslogtreecommitdiff
path: root/tests/serializers
diff options
context:
space:
mode:
authorSaJH <wogur981208@gmail.com>2024-10-16 01:11:46 +0900
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-10-16 11:52:22 +0200
commit0c8177551500e960d2dc04bc4b0fa7060f9172ae (patch)
tree1453b4739431a2efeebd2d2db4f9141e1d064769 /tests/serializers
parent4a685bc0dca5298a7d5a4e162120a90cac7fd1a4 (diff)
Refs #35727 -- Updated response.content.decode calls to use the HttpResponse.text property.
Signed-off-by: SaJH <wogur981208@gmail.com>
Diffstat (limited to 'tests/serializers')
-rw-r--r--tests/serializers/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serializers/tests.py b/tests/serializers/tests.py
index 6ca0c15e04..420246db0b 100644
--- a/tests/serializers/tests.py
+++ b/tests/serializers/tests.py
@@ -155,7 +155,7 @@ class SerializersTestBase:
if isinstance(stream, StringIO):
self.assertEqual(string_data, stream.getvalue())
else:
- self.assertEqual(string_data, stream.content.decode())
+ self.assertEqual(string_data, stream.text)
def test_serialize_specific_fields(self):
obj = ComplexModel(field1="first", field2="second", field3="third")