You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-pyo3/0002-Ensure-to-skip-tests-f...

27 lines
782 B

From 7dd21aa26aa44890eec3b9331a932b84150595c3 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Thu, 26 Jan 2023 18:35:24 +0100
Subject: [PATCH] Ensure to skip tests for little-endian things on big-endian
arches
---
src/ffi/tests.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ffi/tests.rs b/src/ffi/tests.rs
index a0d3250..0800682 100644
--- a/src/ffi/tests.rs
+++ b/src/ffi/tests.rs
@@ -87,7 +87,7 @@ fn test_timezone_from_offset() {
}
#[test]
-#[cfg(feature = "macros")]
+#[cfg(all(feature = "macros", target_endian = "little"))]
#[cfg_attr(target_arch = "wasm32", ignore)] // DateTime import fails on wasm for mysterious reasons
fn test_timezone_from_offset_and_name() {
use crate::types::PyDelta;
--
2.39.1