Skip to content

Commit

Permalink
Fix test failing from PyO3/pyo3#341
Browse files Browse the repository at this point in the history
# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
  • Loading branch information
Eric-Arellano committed May 24, 2021
1 parent e72b6f5 commit 4700f31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rust/engine/engine_pyo3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ default = []
[dependencies]
hashing = { path = "../hashing" }
parking_lot = "0.11"
pyo3 = { version = "0.13", features = ["extension-module"] }
# We must disable the `auto-initialize` feature because we do not enable `extension-module` normally
# (see above comment in `features`), so `auto-initialize` would try to link to a static Python interpreter during
# tests, which may fail. However, we need to then re-activate the `macros` feature. See
# https://pyo3.rs/v0.13.2/features.html
pyo3 = { version = "0.13", default-features = false, features = ["macros"] }
task_executor = { path = "../task_executor" }
testutil_mock = { package = "mock", path = "../testutil/mock" }

1 comment on commit 4700f31

@lemewynn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this solution

Please sign in to comment.