File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -830,16 +830,10 @@ mod tests {
830830 Python :: attach ( |py| {
831831 let obj = SubSubClass :: new ( py) . into_bound ( py) ;
832832 let pyref = obj. borrow ( ) ;
833- dbg ! ( & pyref. inner) ;
834- dbg ! ( & pyref. as_super( ) . inner) ;
835- dbg ! ( std:: any:: type_name_of_val( & pyref. inner. get_class_object( ) ) ) ;
836- dbg ! ( std:: any:: type_name_of_val(
837- & pyref. as_super( ) . inner. get_class_object( )
838- ) ) ;
839- // assert_eq!(pyref.as_super().as_super().val1, 10);
840- // assert_eq!(pyref.as_super().val2, 15);
841- // assert_eq!(pyref.as_ref().val2, 15); // `as_ref` also works
842- // assert_eq!(pyref.val3, 20);
833+ assert_eq ! ( pyref. as_super( ) . as_super( ) . val1, 10 ) ;
834+ assert_eq ! ( pyref. as_super( ) . val2, 15 ) ;
835+ assert_eq ! ( pyref. as_ref( ) . val2, 15 ) ; // `as_ref` also works
836+ assert_eq ! ( pyref. val3, 20 ) ;
843837 assert_eq ! ( SubSubClass :: get_values( pyref) , ( 10 , 15 , 20 ) ) ;
844838 } ) ;
845839 }
You can’t perform that action at this time.
0 commit comments