Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/test_except.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import gc
import tracemalloc

from pytest import raises
from pytest import mark, raises

from msgpack import ExtType, FormatError, OutOfData, StackError, Unpacker, packb, unpackb

Expand Down Expand Up @@ -103,6 +103,7 @@ def test_invalidvalue():
unpacker.skip()


@mark.thread_unsafe(reason="tracemalloc changes process-wide state and measures all threads")
def test_no_memory_leak_on_nested_invalid_tag() -> None:
"""Regression test: unpacking nested arrays containing an invalid tag must not leak objects."""

Expand Down
1 change: 1 addition & 0 deletions test/test_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def test_pairs_preallocation_boundary(size):


@pytest.mark.parametrize("kind", ["list", "tuple", "pairs"])
@pytest.mark.thread_unsafe(reason="tracemalloc changes process-wide state and measures all threads")
def test_nested_headers_preallocation(kind):
packer = Packer()
header = (
Expand Down
Loading