Skip to content

Commit

Permalink
test: fix snapshot test of macro expansion to the Python 3.7 ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
antalsz committed Jul 2, 2024
1 parent 497e4ca commit 5128a9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ fn test_macro_expansion() {
// [rust-ctor](https://crates.io/crates/ctor) crate, which generates
// different output on different OSes. Once we're doing *that*, we have
// to specify a specific Python ABI so that PyO3 doesn't get alarmed
// about cross-compilation. This is all a minor headache.
// about cross-compilation. We pick the oldest availble option so that
// we can be flexible with which Python interpreter is available on the
// system. This is all a minor headache.
//
// In particular, this means that if you are running these tests on a
// different OS, you will need to install the specified target. The
Expand All @@ -60,7 +62,7 @@ fn test_macro_expansion() {
"x86_64-unknown-linux-gnu",
"--no-default-features",
"--features",
"pyo3/abi3-py311",
"pyo3/abi3-py37",
],
)
}

0 comments on commit 5128a9b

Please sign in to comment.