Skip to content

Commit 43b672d

Browse files
ngoldbaumjonathanunderwood
authored andcommitted
disable coverage for tests that measure memory usage
1 parent ebb04a3 commit 43b672d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

tests/block/test_block_3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def data(request):
1818
return request.param
1919

2020

21+
# coverage might allocate and cause this test to fail
22+
@pytest.mark.no_cover
2123
@pytest.mark.thread_unsafe(
2224
reason="tracemalloc captures global snapshots"
2325
)

tests/frame/test_frame_5.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def data(request):
1919
return request.param
2020

2121

22+
# coverage might allocate and cause this test to fail
23+
@pytest.mark.no_cover
2224
@pytest.mark.thread_unsafe(
2325
reason="tracemalloc captures global snapshots"
2426
)
@@ -44,6 +46,8 @@ def test_frame_decompress_mem_usage(data):
4446
prev_snapshot = snapshot
4547

4648

49+
# coverage might allocate and cause this test to fail
50+
@pytest.mark.no_cover
4751
@pytest.mark.thread_unsafe(
4852
reason="tracemalloc captures global snapshots"
4953
)
@@ -72,6 +76,8 @@ def test_frame_decompress_chunk_mem_usage(data):
7276
prev_snapshot = snapshot
7377

7478

79+
# coverage might allocate and cause this test to fail
80+
@pytest.mark.no_cover
7581
@pytest.mark.thread_unsafe(
7682
reason="tracemalloc captures global snapshots"
7783
)

tests/stream/test_stream_3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def data(request):
7171
return request.param
7272

7373

74+
# coverage might allocate and cause this test to fail
75+
@pytest.mark.no_cover
7476
@pytest.mark.thread_unsafe(
7577
reason="tracemalloc captures global snapshots"
7678
)

0 commit comments

Comments
 (0)