Skip to content

Commit 02b7ac5

Browse files
authored
Add filterwarning For test_init_config (#1274)
* As of 0.17.0, a warning is emitted when running `test_init_config` for the aarch64 conda builds with the messsage: <jemalloc>: MADV_DONTNEED does not work (memset will be used instead) <jemalloc>: (This is the expected behaviour if you are running under QEMU) * This can be ignored as this is being run in a Docker image / QEMU and is therefore expected behavior * There was a temporary patch added to conda-forge/tiledb-py-feedstock#145 in order to get the aarch64 packages to build properly. This should be removed in the next release in lieu of this change
1 parent 799b6ba commit 02b7ac5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tiledb/tests/test_libtiledb.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3946,7 +3946,7 @@ def init_test_helper(cfg=None):
39463946
print(int(concurrency_level))
39473947

39483948

3949-
class ContextTest(unittest.TestCase):
3949+
class ContextTest(DiskTestCase):
39503950
def test_default_ctx(self):
39513951
ctx = tiledb.default_ctx()
39523952
self.assertIsInstance(ctx, tiledb.Ctx)
@@ -4002,6 +4002,15 @@ def test_scope_ctx_error(self):
40024002
@pytest.mark.skipif(
40034003
"pytest.tiledb_vfs == 's3'", reason="Test not yet supported with S3"
40044004
)
4005+
@pytest.mark.filterwarnings(
4006+
# As of 0.17.0, a warning is emitted for the aarch64 conda builds with
4007+
# the messsage:
4008+
# <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
4009+
# <jemalloc>: (This is the expected behaviour if you are running under QEMU)
4010+
# This can be ignored as this is being run in a Docker image / QEMU and
4011+
# is therefore expected behavior
4012+
"ignore:This is the expected behaviour if you are running under QEMU"
4013+
)
40054014
def test_init_config(self):
40064015
self.assertEqual(
40074016
int(tiledb.default_ctx().config()["sm.io_concurrency_level"]),

0 commit comments

Comments
 (0)