File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -287,11 +287,7 @@ def test_float(self):
287287 self .assertEqual (float_ (IndexLike .with_val (- 1 )), - 1.0 )
288288
289289 self .assertRaises (TypeError , float_ , FloatLike .with_val (687 ))
290- with warnings .catch_warnings ():
291- warnings .simplefilter ("error" , DeprecationWarning )
292- self .assertRaises (DeprecationWarning , float_ , FloatLike .with_val (subclassof (float )(4.25 )))
293- with self .assertWarns (DeprecationWarning ):
294- self .assertEqual (float_ (FloatLike .with_val (subclassof (float )(4.25 ))), 4.25 )
290+ self .assertRaises (TypeError , float_ , FloatLike .with_val (subclassof (float )(4.25 )))
295291 self .assertRaises (RuntimeError , float_ , FloatLike .with_exc (RuntimeError ))
296292
297293 self .assertRaises (TypeError , float_ , IndexLike .with_val (1.25 ))
You can’t perform that action at this time.
0 commit comments