提交 edf2e31c authored 作者: --global's avatar --global

Correctly obtain the path of the pickle file in the test case

上级 7a63d84d
...@@ -1345,8 +1345,10 @@ class T_Scan(unittest.TestCase): ...@@ -1345,8 +1345,10 @@ class T_Scan(unittest.TestCase):
# When unpickled, the scan op should perform validation on its inner # When unpickled, the scan op should perform validation on its inner
# graph, detect the inconsistencies and raise a TypeError # graph, detect the inconsistencies and raise a TypeError
assert_raises(TypeError, cPickle.load, folder = os.path.dirname(os.path.abspath(__file__))
open("./inconsistent_scan.pkl", "r")) path = os.path.join(folder, "inconsistent_scan.pkl")
assert_raises(TypeError, cPickle.load, open(path, "r"))
def test_cuda_gibbs_chain(self): def test_cuda_gibbs_chain(self):
from theano.sandbox import cuda from theano.sandbox import cuda
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论