Skip to content

Commit

Permalink
Merge pull request #96 from martinfleis/conftest
Browse files Browse the repository at this point in the history
move conftest
  • Loading branch information
sjsrey authored Jan 29, 2025
2 parents a77a35e + 790dcd6 commit eb998bf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions conftest.py → inequality/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@

def warning_depr(x):
return pytest.warns(
FutureWarning,
match=f"{x} is deprecated and will be removed on 2025-01-01."
FutureWarning, match=f"{x} is deprecated and will be removed on 2025-01-01."
)


def warning_invalid(x):
return pytest.warns(RuntimeWarning,
match=f"invalid value encountered in {x}")
return pytest.warns(RuntimeWarning, match=f"invalid value encountered in {x}")


warning_div_zero = pytest.warns(RuntimeWarning,
match="divide by zero encountered")
warning_div_zero = pytest.warns(RuntimeWarning, match="divide by zero encountered")


def pytest_configure():
Expand Down

0 comments on commit eb998bf

Please sign in to comment.