Author: mattip <[email protected]>
Branch: numpypy.float16
Changeset: r58707:3426fb6e23e4
Date: 2012-11-04 00:49 +0200
http://bitbucket.org/pypy/pypy/changeset/3426fb6e23e4/
Log: fix tests, float16 now exists
diff --git a/pypy/module/micronumpy/test/test_base.py
b/pypy/module/micronumpy/test/test_base.py
--- a/pypy/module/micronumpy/test/test_base.py
+++ b/pypy/module/micronumpy/test/test_base.py
@@ -53,6 +53,7 @@
ulong_dtype = get_dtype_cache(space).w_ulongdtype
int64_dtype = get_dtype_cache(space).w_int64dtype
uint64_dtype = get_dtype_cache(space).w_uint64dtype
+ float16_dtype = get_dtype_cache(space).w_float16dtype
float32_dtype = get_dtype_cache(space).w_float32dtype
float64_dtype = get_dtype_cache(space).w_float64dtype
@@ -73,9 +74,9 @@
# Coerce to floats, some of these will eventually be float16, or
# whatever our smallest float type is.
- assert find_unaryop_result_dtype(space, bool_dtype,
promote_to_float=True) is float32_dtype # will be float16 if we ever put that in
- assert find_unaryop_result_dtype(space, int8_dtype,
promote_to_float=True) is float32_dtype # will be float16 if we ever put that in
- assert find_unaryop_result_dtype(space, uint8_dtype,
promote_to_float=True) is float32_dtype # will be float16 if we ever put that in
+ assert find_unaryop_result_dtype(space, bool_dtype,
promote_to_float=True) is float16_dtype
+ assert find_unaryop_result_dtype(space, int8_dtype,
promote_to_float=True) is float16_dtype
+ assert find_unaryop_result_dtype(space, uint8_dtype,
promote_to_float=True) is float16_dtype
assert find_unaryop_result_dtype(space, int16_dtype,
promote_to_float=True) is float32_dtype
assert find_unaryop_result_dtype(space, uint16_dtype,
promote_to_float=True) is float32_dtype
assert find_unaryop_result_dtype(space, int32_dtype,
promote_to_float=True) is float64_dtype
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit