@@ -593,7 +593,7 @@ fn py_time_to_naive_time(py_time: &Bound<'_, PyAny>) -> PyResult<NaiveTime> {
593593#[ cfg( test) ]
594594mod tests {
595595 use super :: * ;
596- use crate :: { types:: PyTuple , BoundObject } ;
596+ use crate :: { test_utils :: assert_warnings , types:: PyTuple , BoundObject } ;
597597 use std:: { cmp:: Ordering , panic} ;
598598
599599 #[ test]
@@ -875,7 +875,6 @@ mod tests {
875875
876876 check_utc ( "regular" , 2014 , 5 , 6 , 7 , 8 , 9 , 999_999 , 999_999 ) ;
877877
878- #[ cfg( not( Py_GIL_DISABLED ) ) ]
879878 assert_warnings ! (
880879 py,
881880 check_utc( "leap second" , 2014 , 5 , 6 , 7 , 8 , 59 , 1_999_999 , 999_999 ) ,
@@ -915,7 +914,6 @@ mod tests {
915914
916915 check_fixed_offset ( "regular" , 2014 , 5 , 6 , 7 , 8 , 9 , 999_999 , 999_999 ) ;
917916
918- #[ cfg( not( Py_GIL_DISABLED ) ) ]
919917 assert_warnings ! (
920918 py,
921919 check_fixed_offset( "leap second" , 2014 , 5 , 6 , 7 , 8 , 59 , 1_999_999 , 999_999 ) ,
@@ -1101,7 +1099,6 @@ mod tests {
11011099
11021100 check_time ( "regular" , 3 , 5 , 7 , 999_999 , 999_999 ) ;
11031101
1104- #[ cfg( not( Py_GIL_DISABLED ) ) ]
11051102 assert_warnings ! (
11061103 py,
11071104 check_time( "leap second" , 3 , 5 , 59 , 1_999_999 , 999_999 ) ,
@@ -1163,10 +1160,10 @@ mod tests {
11631160 . unwrap ( )
11641161 }
11651162
1166- #[ cfg( not( any( target_arch = "wasm32" , Py_GIL_DISABLED ) ) ) ]
1163+ #[ cfg( not( any( target_arch = "wasm32" ) ) ) ]
11671164 mod proptests {
11681165 use super :: * ;
1169- use crate :: tests :: common :: CatchWarnings ;
1166+ use crate :: test_utils :: CatchWarnings ;
11701167 use crate :: types:: IntoPyDict ;
11711168 use proptest:: prelude:: * ;
11721169 use std:: ffi:: CString ;
0 commit comments