mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-10-01 06:52:10 +00:00
Merge pull request #117 from thenorili/pyo3-future-incompat
Update future-incompat pyo3 dependency
This commit is contained in:
commit
fc4f006ba8
@ -20,7 +20,7 @@ track-caller = []
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
indenter = { workspace = true }
|
indenter = { workspace = true }
|
||||||
once_cell = { 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]
|
[dev-dependencies]
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
@ -30,7 +30,7 @@ trybuild = { version = "1.0.19", features = ["diff"] }
|
|||||||
backtrace = "0.3.46"
|
backtrace = "0.3.46"
|
||||||
anyhow = "1.0.28"
|
anyhow = "1.0.28"
|
||||||
syn = { version = "2.0", features = ["full"] }
|
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]
|
[package.metadata.docs.rs]
|
||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
@ -28,6 +28,6 @@ fn test_pyo3_exception_contents() {
|
|||||||
Python::with_gil(|py| {
|
Python::with_gil(|py| {
|
||||||
let locals = [("err", pyerr)].into_py_dict(py);
|
let locals = [("err", pyerr)].into_py_dict(py);
|
||||||
let pyerr = py.run("raise err", None, Some(locals)).unwrap_err();
|
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);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user