提交 4311a89a authored 作者: Michael Osthege's avatar Michael Osthege

Simplify test to be Windows-compatible

The backslashes in `__file__` created invalid escape sequences.
上级 e98cbbcf
...@@ -50,8 +50,7 @@ def test_function_name(): ...@@ -50,8 +50,7 @@ def test_function_name():
x = vector("x") x = vector("x")
func = function([x], x + 1.0) func = function([x], x + 1.0)
regex = re.compile(f".*{__file__}c?") assert __file__ in func.name
assert regex.match(func.name) is not None
def test_trust_input(): def test_trust_input():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论