Skip to content

Commit d517427

Browse files
committed
windows
1 parent badbd94 commit d517427

File tree

9 files changed

+9
-2
lines changed

9 files changed

+9
-2
lines changed

crates/pet-conda/tests/ci_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
use serde::Deserialize;
56
use std::path::PathBuf;

crates/pet-conda/tests/environments_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
mod common;
56
use common::resolve_test_path;

crates/pet-conda/tests/package_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
mod common;
56
use pet_conda::package::{self, CondaPackageInfo};

crates/pet-conda/tests/utils_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
mod common;
56
use common::resolve_test_path;

crates/pet-homebrew/src/environments.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,11 @@ fn get_prefix(_resolved_file: &Path) -> Option<PathBuf> {
147147
None
148148
}
149149

150-
#[cfg(test)]
150+
#[cfg(all(test, unix))]
151151
mod tests {
152152
use super::*;
153153

154154
#[test]
155-
#[cfg(unix)]
156155
fn extract_version() {
157156
assert_eq!(
158157
get_version(&PathBuf::from(

crates/pet-python-utils/tests/executable_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
mod common;
56
use pet_python_utils::executable;

crates/pet-python-utils/tests/sys_prefix_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
mod common;
56
use pet_python_utils::version;

crates/pet/tests/ci_homebrew_container.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
use std::sync::Once;
56

crates/pet/tests/ci_jupyter_container.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
3+
#![cfg(unix)]
34

45
use std::sync::Once;
56

0 commit comments

Comments
 (0)