summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMatthew Brett <matthew.brett@gmail.com>2016-02-14 15:14:30 -0800
committerMatthew Brett <matthew.brett@gmail.com>2016-02-14 15:14:30 -0800
commitf570f278dbdb2825d9f19a33ea6e3a721f31e62f (patch)
treec935368601fbf2f5ad6fd837babd30d49fdc5a21 /benchmarks
parent47b6c2b8bacb510cac62d490c159ec116080d1d0 (diff)
downloadnumpy-f570f278dbdb2825d9f19a33ea6e3a721f31e62f.tar.gz
BUG: only benchmark complex256 if it exists
Only benchmark complex256 type if numpy has it (MSVC windows builds do not).
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/benchmarks/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmarks/benchmarks/common.py b/benchmarks/benchmarks/common.py
index 066d4b130..18a09fd40 100644
--- a/benchmarks/benchmarks/common.py
+++ b/benchmarks/benchmarks/common.py
@@ -22,8 +22,9 @@ TYPES1 = [
'int32', 'float32',
'int64', 'float64', 'complex64',
'longfloat', 'complex128',
- 'complex256',
]
+if 'complex256' in numpy.typeDict:
+ TYPES1.append('complex256')
def memoize(func):