diff --git a/noxfile.py b/noxfile.py index 91b6b922..f6b85e1b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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") diff --git a/pytests/tests/test_othermod.py b/pytests/tests/test_othermod.py index 08ac367a..ff67bba4 100644 --- a/pytests/tests/test_othermod.py +++ b/pytests/tests/test_othermod.py @@ -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