Skip to content

Commit

Permalink
unxfail cases
Browse files Browse the repository at this point in the history
  • Loading branch information
eb8680 committed Feb 15, 2024
1 parent 4d7e04b commit fd3671c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions tests/robust/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
lambda m: pyro.infer.autoguide.AutoNormal(pyro.poutine.block(hide=["y"])(m)),
{"y"},
1,
marks=pytest.mark.xfail(
reason="torch.func autograd doesnt work with PyroParam"
marks=(
[pytest.mark.xfail(reason="torch.func autograd doesnt work with PyroParam")]
if tuple(map(int, pyro.__version__.split("+")[0].split(".")[:3]))
<= (1, 8, 6)
else []
),
),
]
Expand Down
7 changes: 5 additions & 2 deletions tests/robust/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
lambda m: pyro.infer.autoguide.AutoNormal(pyro.poutine.block(hide=["y"])(m)),
{"y"},
1,
marks=pytest.mark.xfail(
reason="torch.func autograd doesnt work with PyroParam"
marks=(
[pytest.mark.xfail(reason="torch.func autograd doesnt work with PyroParam")]
if tuple(map(int, pyro.__version__.split("+")[0].split(".")[:3]))
<= (1, 8, 6)
else []
),
),
]
Expand Down

0 comments on commit fd3671c

Please sign in to comment.