提交 aafce809 authored 作者: Tim Cooijmans's avatar Tim Cooijmans

map_variables: xrange -> range for Python 3 compatibility

上级 03eaa09e
...@@ -196,7 +196,7 @@ class TestMapVariables(X): ...@@ -196,7 +196,7 @@ class TestMapVariables(X):
[u]) [u])
f = function([c, d], [u, v]) f = function([c, d], [u, v])
for m, n in itertools.combinations(xrange(10), 2): for m, n in itertools.combinations(range(10), 2):
assert f(m, n) == [m + n, m - n] assert f(m, n) == [m + n, m - n]
def test_scan(self): def test_scan(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论