Skip to content

Commit

Permalink
Skip git sdist generator tests when executing from a non-git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 7, 2023
1 parent d1a1bd9 commit 439789f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,9 @@ fn pyo3_mixed_include_exclude_sdist() {

#[test]
fn pyo3_mixed_include_exclude_git_sdist_generator() {
if !Path::new(".git").exists() {
return;
}
handle_result(other::test_source_distribution(
"test-crates/pyo3-mixed-include-exclude",
SdistGenerator::Git,
Expand Down Expand Up @@ -659,6 +662,9 @@ fn workspace_with_path_dep_sdist() {

#[test]
fn workspace_with_path_dep_git_sdist_generator() {
if !Path::new(".git").exists() {
return;
}
handle_result(other::test_source_distribution(
"test-crates/workspace_with_path_dep/python",
SdistGenerator::Git,
Expand Down

0 comments on commit 439789f

Please sign in to comment.