Skip to content

Commit

Permalink
Merge pull request #117 from thenorili/pyo3-future-incompat
Browse files Browse the repository at this point in the history
Update future-incompat pyo3 dependency
  • Loading branch information
pksunkara authored Nov 10, 2023
2 parents 2422bcd + cadf826 commit fc4f006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions eyre/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion eyre/tests/test_pyo3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
}

0 comments on commit fc4f006

Please sign in to comment.