def test_range_extra_dtypes():
 dtype_range_extra = dtype_range.copy()
 dtype_range_extra.update({np.int32: ((-2147483648), 2147483647), np.uint32: (0, 4294967295)})
 dtype_pairs = [(np.uint8, np.uint32), (np.int8, np.uint32), (np.int8, np.int32), (np.int32, np.int8), (np.float64, np.float32), (np.int32, np.float32)]
 for (dtype_in, dt) in dtype_pairs:
  (imin, imax) = dtype_range_extra[dtype_in]
  x = np.linspace(imin, imax, 10).astype(dtype_in)
  with expected_warnings(['precision loss|sign loss|\\A\\Z']):
   y = convert(x, dt)
  (omin, omax) = dtype_range_extra[dt]
  (yield (_verify_range, ('From %s to %s' % (np.dtype(dtype_in), np.dtype(dt))), y, omin, omax, np.dtype(dt)))

def test_range_extra_dtypes ( ) : dtype_range_extra = dtype_range . copy ( ) dtype_range_extra . update ( { np . int32 : ( ( - 2147483648 ) , 2147483647 ) , np . uint32 : ( 0 , 4294967295 ) } ) dtype_pairs = [ ( np . uint8 , np . uint32 ) , ( np . int8 , np . uint32 ) , ( np . int8 , np . int32 ) , ( np . int32 , np . int8 ) , ( np . float64 , np . float32 ) , ( np . int32 , np . float32 ) ] for ( dtype_in , dt ) in dtype_pairs : ( imin , imax ) = dtype_range_extra [ dtype_in ] x = np . linspace ( imin , imax , 10 ) . astype ( dtype_in ) with expected_warnings ( [ 'precision loss|sign loss|\\A\\Z' ] ) : y = convert ( x , dt ) ( omin , omax ) = dtype_range_extra [ dt ] ( yield ( _verify_range , ( 'From %s to %s' % ( np . dtype ( dtype_in ) , np . dtype ( dt ) ) ) , y , omin , omax , np . dtype ( dt ) ) )
test code paths that are not skipped by test_range .