提交 5def3ff1 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Added a known failure case with numpy 1.6.0

上级 5dfd83da
...@@ -7,6 +7,7 @@ import unittest ...@@ -7,6 +7,7 @@ import unittest
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
import numpy import numpy
from numpy.testing import dec from numpy.testing import dec
from numpy.testing.noseclasses import KnownFailureTest
from theano.tensor import * from theano.tensor import *
from theano.tensor import basic as tensor # for hidden symbols from theano.tensor import basic as tensor # for hidden symbols
...@@ -4736,6 +4737,22 @@ class test_arithmetic_cast(unittest.TestCase): ...@@ -4736,6 +4737,22 @@ class test_arithmetic_cast(unittest.TestCase):
config.int_division == 'floatX'): config.int_division == 'floatX'):
assert theano_dtype == config.floatX assert theano_dtype == config.floatX
continue continue
if (cfg == 'numpy+floatX' and
a_type == 'complex128' and
b_type == 'float32' and
combo == ('scalar', 'array') and
numpy.__version__ == '1.6.0' and
theano_dtype == 'complex128' and
numpy_dtypes == ['complex64',
'complex64']):
# In numpy 1.6.0 adding a complex128 with
# a float32 may result in a complex64. This
# may be a bug (investigation is currently
# in progress), so in the meantime we just
# mark this test as a known failure.
raise KnownFailureTest('Known issue with '
'numpy 1.6.0, see #761')
# In any other situation: something wrong is # In any other situation: something wrong is
# going on! # going on!
assert False assert False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论