File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ mod tests {
118118 use crate :: { IntoPyObject , Python } ;
119119
120120 #[ test]
121+ #[ allow( clippy:: write_literal) ]
121122 #[ cfg( not( Py_LIMITED_API ) ) ]
122123 fn unicode_writer_test ( ) {
123124 use std:: fmt:: Write ;
@@ -140,10 +141,10 @@ mod tests {
140141 #[ test]
141142 fn test_complex_format ( ) {
142143 Python :: with_gil ( |py| {
143- let complex_value = ( 42 , "foo" , 3.14 ) . into_pyobject ( py) . unwrap ( ) ;
144+ let complex_value = ( 42 , "foo" , [ 0 ; 0 ] ) . into_pyobject ( py) . unwrap ( ) ;
144145 let py_string = py_format ! ( py, "This is some complex value: {complex_value}" ) . unwrap ( ) ;
145146 let actual = py_string. to_cow ( ) . unwrap ( ) ;
146- let expected = "This is some complex value: (42, 'foo', 3.14 )" ;
147+ let expected = "This is some complex value: (42, 'foo', [] )" ;
147148 assert_eq ! ( actual, expected) ;
148149 } ) ;
149150 }
You can’t perform that action at this time.
0 commit comments