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 {
118
118
use crate :: { IntoPyObject , Python } ;
119
119
120
120
#[ test]
121
+ #[ allow( clippy:: write_literal) ]
121
122
#[ cfg( not( Py_LIMITED_API ) ) ]
122
123
fn unicode_writer_test ( ) {
123
124
use std:: fmt:: Write ;
@@ -140,10 +141,10 @@ mod tests {
140
141
#[ test]
141
142
fn test_complex_format ( ) {
142
143
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 ( ) ;
144
145
let py_string = py_format ! ( py, "This is some complex value: {complex_value}" ) . unwrap ( ) ;
145
146
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', [] )" ;
147
148
assert_eq ! ( actual, expected) ;
148
149
} ) ;
149
150
}
You can’t perform that action at this time.
0 commit comments