File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ mod tests {
151151 #[ cfg( all( not( PyPy ) , Py_3_10 ) ) ]
152152 use crate :: types:: PyNone ;
153153 use crate :: types:: { PyAnyMethods , PyDict , PyList , PyListMethods } ;
154- #[ cfg( all( feature = "macros" , not( Py_LIMITED_API ) ) ) ]
154+ #[ cfg( all( feature = "macros" , Py_3_8 , not( Py_LIMITED_API ) ) ) ]
155155 use crate :: PyErr ;
156156 use crate :: { IntoPyObject , PyTypeInfo , Python } ;
157157
@@ -402,7 +402,7 @@ def fibonacci(target):
402402 }
403403
404404 #[ test]
405- #[ cfg( all( feature = "macros" , not( Py_LIMITED_API ) ) ) ]
405+ #[ cfg( all( feature = "macros" , Py_3_8 , not( Py_LIMITED_API ) ) ) ]
406406 fn length_hint_error ( ) {
407407 #[ crate :: pyfunction( crate = "crate" ) ]
408408 fn test_size_hint ( obj : & crate :: Bound < ' _ , crate :: PyAny > , should_error : bool ) {
You can’t perform that action at this time.
0 commit comments