File tree 2 files changed +6
-9
lines changed 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -378,8 +378,6 @@ def test_long(self):
378
378
self .assertRaises (ValueError , int , '\u3053 \u3093 \u306b \u3061 \u306f ' )
379
379
380
380
381
- # TODO: RUSTPYTHON
382
- @unittest .expectedFailure
383
381
def test_conversion (self ):
384
382
385
383
class JustLong :
Original file line number Diff line number Diff line change @@ -63,13 +63,12 @@ impl PyObject {
63
63
} else if let Some ( i) = self . to_number ( ) . int ( vm) . or_else ( || self . try_index_opt ( vm) ) {
64
64
i
65
65
} else if let Ok ( Some ( f) ) = vm. get_special_method ( self , identifier ! ( vm, __trunc__) ) {
66
- // TODO: Deprecate in 3.11
67
- // warnings::warn(
68
- // vm.ctx.exceptions.deprecation_warning.clone(),
69
- // "The delegation of int() to __trunc__ is deprecated.".to_owned(),
70
- // 1,
71
- // vm,
72
- // )?;
66
+ warnings:: warn (
67
+ vm. ctx . exceptions . deprecation_warning ,
68
+ "The delegation of int() to __trunc__ is deprecated." . to_owned ( ) ,
69
+ 1 ,
70
+ vm,
71
+ ) ?;
73
72
let ret = f. invoke ( ( ) , vm) ?;
74
73
ret. try_index ( vm) . map_err ( |_| {
75
74
vm. new_type_error ( format ! (
You can’t perform that action at this time.
0 commit comments