nixpkgs/pkgs/by-name/sq/sqruff/disable-ui_with_python-test.diff
2025-06-02 08:38:36 +08:00

16 lines
492 B
Diff

diff --git a/crates/cli/tests/ui_with_python.rs b/crates/cli/tests/ui_with_python.rs
index 826f399c..0fa5ae33 100644
--- a/crates/cli/tests/ui_with_python.rs
+++ b/crates/cli/tests/ui_with_python.rs
@@ -4,6 +4,10 @@ use std::path::PathBuf;
use assert_cmd::Command;
use expect_test::expect_file;
+#[cfg(not(feature = "python"))]
+fn main() {}
+
+#[cfg(feature = "python")]
fn main() {
let mut test_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
test_dir.push("tests/python");