From 0801e6c91cfb22f0df42c36c664749d3e7d6336f Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Mon, 5 Jun 2023 12:00:03 +0200 Subject: [PATCH] . --- tests/test_serializer.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/tests/test_serializer.py b/tests/test_serializer.py index 5bb0579d5a..d901110d11 100644 --- a/tests/test_serializer.py +++ b/tests/test_serializer.py @@ -1,4 +1,3 @@ -import re import sys import pytest @@ -73,25 +72,6 @@ def test_bytes_serialization_repr(message_normalizer): assert result == r"b'abc123\x80\xf0\x9f\x8d\x95'" -def test_bytearray_serialization_decode(message_normalizer): - binary = bytearray(b"abc123\x80\xf0\x9f\x8d\x95") - result = message_normalizer(binary, should_repr_strings=False) - assert result == "abc123\ufffd\U0001f355" - - -@pytest.mark.xfail(sys.version_info < (3,), reason="Known safe_repr bugs in Py2.7") -def test_bytearray_serialization_repr(message_normalizer): - binary = bytearray(b"abc123\x80\xf0\x9f\x8d\x95") - result = message_normalizer(binary, should_repr_strings=True) - assert result == r"bytearray(b'abc123\x80\xf0\x9f\x8d\x95')" - - -def test_memoryview_serialization_repr(message_normalizer): - binary = memoryview(b"abc123\x80\xf0\x9f\x8d\x95") - result = message_normalizer(binary, should_repr_strings=False) - assert re.match(r"^$", result) - - def test_serialize_sets(extra_normalizer): result = extra_normalizer({1, 2, 3}) assert result == [1, 2, 3]