Skip to content

Commit

Permalink
Merge pull request #1601 from messense/skip-git-sdist-tests
Browse files Browse the repository at this point in the history
Skip git sdist generator tests when executing from a non-git checkout
  • Loading branch information
messense authored May 7, 2023
2 parents d1a1bd9 + 439789f commit d05c223
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 d05c223

Please sign in to comment.