Skip to content

Commit

Permalink
Fix coverage for pyo3-build-config CI ("full" feature)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley Anderson committed Jan 25, 2022
1 parent ce904ae commit 8c4b0b4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,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
Expand Down
13 changes: 12 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,18 @@ nightly = []

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

[[bench]]
name = "bench_call"
Expand Down
2 changes: 1 addition & 1 deletion pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,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();
Expand Down

0 comments on commit 8c4b0b4

Please sign in to comment.