update black to 22.1.0

This commit is contained in:
David Hewitt 2022-02-14 07:42:06 +00:00
parent c2e49a2b4c
commit 3ed0df1169
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ def fmt_rust(session: nox.Session):
@nox.session(name="fmt-py")
def fmt_py(session: nox.Session):
session.install("black==21.12b0")
session.install("black==22.1.0")
session.run("black", ".", "--check")

View File

@ -3,14 +3,14 @@ from hypothesis import strategies as st
from pyo3_pytests import othermod
INTEGER32_ST = st.integers(min_value=(-(2 ** 31)), max_value=(2 ** 31 - 1))
INTEGER32_ST = st.integers(min_value=(-(2**31)), max_value=(2**31 - 1))
USIZE_ST = st.integers(min_value=othermod.USIZE_MIN, max_value=othermod.USIZE_MAX)
@given(x=INTEGER32_ST)
def test_double(x):
expected = x * 2
assume(-(2 ** 31) <= expected <= (2 ** 31 - 1))
assume(-(2**31) <= expected <= (2**31 - 1))
assert othermod.double(x) == expected