From 9e78c2fcf952e435ac76d74e231541b17228f768 Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 22 Mar 2022 12:32:06 +0800 Subject: [PATCH] Enable `auto-initialize` of pyo3 to fix `cargo test --no-default-features` --- bindings/python/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 301f1f8d7..b01e89caf 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -26,6 +26,7 @@ path = "../../tokenizers" [dev-dependencies] tempfile = "3.1" +pyo3 = { version = "0.16.2", features = ["auto-initialize"] } [features] default = ["pyo3/extension-module"]