Merge pull request #117 from thenorili/pyo3-future-incompat

Update future-incompat pyo3 dependency
This commit is contained in:
Pavan Kumar Sunkara 2023-11-10 10:55:46 +00:00 committed by GitHub
commit fc4f006ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ track-caller = []
[dependencies]
indenter = { workspace = true }
once_cell = { workspace = true }
pyo3 = { version = "0.13", optional = true, default-features = false }
pyo3 = { version = "0.20", optional = true, default-features = false }
[dev-dependencies]
futures = { version = "0.3", default-features = false }
@ -30,7 +30,7 @@ trybuild = { version = "1.0.19", features = ["diff"] }
backtrace = "0.3.46"
anyhow = "1.0.28"
syn = { version = "2.0", features = ["full"] }
pyo3 = { version = "0.13", default-features = false, features = ["auto-initialize"] }
pyo3 = { version = "0.20", default-features = false, features = ["auto-initialize"] }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

View File

@ -28,6 +28,6 @@ fn test_pyo3_exception_contents() {
Python::with_gil(|py| {
let locals = [("err", pyerr)].into_py_dict(py);
let pyerr = py.run("raise err", None, Some(locals)).unwrap_err();
assert_eq!(pyerr.pvalue(py).to_string(), expected_contents);
assert_eq!(pyerr.value(py).to_string(), expected_contents);
})
}