Skip to content

Commit

Permalink
fix pytest deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Aug 4, 2020
1 parent 5dd153f commit e390bc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_gyrovector_math.py
Expand Up @@ -10,7 +10,7 @@
from geoopt.manifolds import stereographic


@pytest.fixture("function", autouse=True, params=range(30, 40))
@pytest.fixture(scope="function", autouse=True, params=range(30, 40))
def seed(request):
seed = request.param
torch.manual_seed(seed)
Expand All @@ -20,7 +20,7 @@ def seed(request):


@pytest.fixture(
"function", params=[torch.float64, torch.float32], ids=["float64", "float32"]
scope="function", params=[torch.float64, torch.float32], ids=["float64", "float32"]
)
def dtype(request):
return request.param
Expand Down
4 changes: 2 additions & 2 deletions tests/test_lorentz_math.py
Expand Up @@ -5,7 +5,7 @@
from geoopt.manifolds import lorentz


@pytest.fixture("module", autouse=True, params=range(30, 40))
@pytest.fixture(scope="module", autouse=True, params=range(30, 40))
def seed(request):
seed = request.param
torch.manual_seed(seed)
Expand All @@ -14,7 +14,7 @@ def seed(request):
return seed


@pytest.fixture("module", params=[torch.float64, torch.float32])
@pytest.fixture(scope="module", params=[torch.float64, torch.float32])
def dtype(request):
return request.param

Expand Down

0 comments on commit e390bc9

Please sign in to comment.