提交 aa3b48c2 authored 作者: AlexLamb's avatar AlexLamb

Fixed test that only worked in Python2.7

上级 f19bb9fa
......@@ -151,13 +151,13 @@ class dictionary_output_checker(unittest.TestCase):
pass
try:
theano.function([x], outputs={1.0: x, "a": x**2})
theano.function([x], outputs={1.0: x, 2.0: x**2})
raise Exception("Did not throw exception with 1.0 as one key")
except AssertionError:
pass
try:
theano.function([x], outputs={("a", "b"): x, "a": x**2})
raise Exception("Did not throw exception with tuple as one key")
theano.function([x], outputs={("a", "b"): x, 1.0: x**2})
raise Exception("Did not throw exception with tuple as key")
except AssertionError:
pass
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论