diff --git a/meta-python/recipes-devtools/python/python3-msgpack_1.2.1.bb b/meta-python/recipes-devtools/python/python3-msgpack_1.2.1.bb
index 283068a71a..f8154598ac 100644
--- a/meta-python/recipes-devtools/python/python3-msgpack_1.2.1.bb
+++ b/meta-python/recipes-devtools/python/python3-msgpack_1.2.1.bb
@@ -12,4 +12,9 @@ RDEPENDS:${PN}:append:class-target = " \
     python3-io \
 "
 
+# python3-misc for tracemalloc (used by test/test_except.py)
+RDEPENDS:${PN}-ptest += " \
+    python3-misc \
+"
+
 BBCLASSEXTEND = "native nativesdk"
