Fix coverage for pyo3-build-config CI ("full" feature)

This commit is contained in:
Ashley Anderson 2022-01-11 19:59:33 -05:00
parent 161d79fae3
commit bc356f23e0
3 changed files with 15 additions and 3 deletions

View File

@ -227,7 +227,7 @@ jobs:
run: cargo test --manifest-path=pyo3-macros-backend/Cargo.toml
- name: Test build config
run: cargo test --manifest-path=pyo3-build-config/Cargo.toml --all-features
run: cargo test --manifest-path=pyo3-build-config/Cargo.toml
- name: Test python examples and tests
shell: bash

View File

@ -87,7 +87,19 @@ nightly = []
# Activates all additional features
# This is mostly intended for testing purposes - activating *all* of these isn't particularly useful.
full = ["macros", "pyproto", "multiple-pymethods", "num-bigint", "num-complex", "hashbrown", "serde", "indexmap", "eyre", "anyhow"]
full = [
"macros",
"pyproto",
"multiple-pymethods",
"num-bigint",
"num-complex",
"hashbrown",
"serde",
"indexmap",
"eyre",
"anyhow",
"pyo3-build-config/export-config"
]
[[bench]]
name = "bench_call"

View File

@ -1948,7 +1948,7 @@ mod tests {
#[test]
#[cfg(feature = "export-config")]
fn test_emit_pyo3_configs_round_trip() {
fn test_emit_pyo3_configs_roundtrip() {
let interpreter = make_interpreter_config()
.expect("could not get InterpreterConfig from installed interpreter");
interpreter.emit_pyo3_cfgs();