Skip to content

Commit 2804c4b

Browse files
committed
fix: Require macros feature for ordered_float tests
The tests make use of the py_run macro which is only available with the macros feature enabled.
1 parent 5e35cc1 commit 2804c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conversions/ordered_float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ float_conversions!(NotNan, f32, |val| NotNan::new(val)
9898
float_conversions!(NotNan, f64, |val| NotNan::new(val)
9999
.map_err(|e| PyValueError::new_err(e.to_string())));
100100

101-
#[cfg(test)]
101+
#[cfg(all(test, feature="macros"))]
102102
mod test_ordered_float {
103103
use super::*;
104104
use crate::py_run;

0 commit comments

Comments
 (0)