Merge pull request #2064 from davidhewitt/test-hygiene-coverage-try-2

ci: ignore coverage for test_hygiene, try 2
This commit is contained in:
David Hewitt 2021-12-20 22:37:33 +00:00 committed by GitHub
commit 3858a63b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -10,3 +10,4 @@ coverage:
ignore:
- tests/*.rs
- src/test_hygiene/*.rs

View File

@ -11,6 +11,7 @@
// Deny some lints in doctests.
// Use `#[allow(...)]` locally to override.
#![doc(test(attr(deny(warnings), allow(unused_variables, unused_assignments))))]
#![cfg_attr(coverage, feature(no_coverage))] // used in src/test_hygiene.rs
//! Rust bindings to the Python interpreter.
//!

View File

@ -3,7 +3,7 @@
// #[pyo3(crate = "crate")] this validates that all macro expansion respects the setting.
//
// The generated code is never executed (these tests are checking compile time correctness.)
#![cfg_attr(coverage, feature(no_coverage))]
#![cfg_attr(coverage, no_coverage)]
mod misc;
mod pyclass;