提交 81299640 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Reset the warnings filter after altering it in a test.

上级 7d88e7f7
......@@ -57,6 +57,7 @@ class TestComputeTestValue(unittest.TestCase):
self.assertRaises(UserWarning, T.dot, x, y)
finally:
theano.config.compute_test_value = orig_compute_test_value
warnings.resetwarnings()
def test_string_var(self):
orig_compute_test_value = theano.config.compute_test_value
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论