提交 91253065 authored 作者: James Bergstra's avatar James Bergstra

pfunc tests - if I wrote this I was definitely on crack at the time

上级 fb3e7e66
......@@ -178,17 +178,6 @@ class Test_pfunc(unittest.TestCase):
assign()
self.failUnless(x.value == 3)
# Same but using a mutable constant to show how it can be used to
# modify the update value after the function is created.
x.value = 0
y = numpy.ones((), dtype='int64')
assign_mutable = pfunc([], [], updates = {x: y})
assign_mutable()
self.failUnless(x.value == 1)
y.fill(4)
assign_mutable()
self.failUnless(x.value == 4)
# Basic increment function.
x.value = 0
inc = pfunc([], [], updates = {x: x + 1})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论