Merge pull request #2056 from davidhewitt/hygiene-no-coverage

ci: no coverage necessary for hygiene tests
This commit is contained in:
David Hewitt 2021-12-18 09:37:07 +00:00 committed by GitHub
commit c36dff3cf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,10 @@
// The modules in this test are used to check PyO3 macro expansion is hygienic. By locating the test
// inside the crate the global `::pyo3` namespace is not available, so in combination with
// #[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))]
mod misc;
mod pyclass;
mod pyfunction;