-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Version: 3.0.2 on Fedora Rawhide, Python 3.12.
=================================== FAILURES ===================================
______________________ test_set_consistency[20-120-1200] _______________________
original = (20, 30, 1000, 40)
dumped = b'x\x9cc`\x10p``d\x18\x18\x80d/\x00*\xb6\x00S'
dumped_trailing_bits = b'x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF'
@pytest.mark.parametrize(
argnames=["original", "dumped", "dumped_trailing_bits"],
argvalues=[
(
(20, 30, 1000, 40),
b("x\x9cc`\x10p``d\x18\x18\x80d/\x00*\xb6\x00S"),
b("x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF"),
),
(
(20, 30, 1000, 41),
b("x\x9cc`\x10p``b\x18\x18\xc0\x88`\x02\x00+9\x00T"),
b("x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF"),
),
(
(20, 30, 1001, 41),
b("x\x9cc`\x10p``b\x18\x18\x80d/\x00+D\x00U"),
b("x\x9cc`\x10p`\x18(\xf0\xef?\x1c\x00\x00k\xdb\x0bE"),
),
],
ids=lambda s: s[0],
)
def test_set_consistency(original, dumped, dumped_trailing_bits):
intbitset1 = intbitset(original)
intbitset2 = intbitset(original, trailing_bits=True)
intbitset3 = intbitset(dumped)
intbitset4 = intbitset(dumped_trailing_bits)
check_bitset(intbitset1)
check_bitset(intbitset2)
check_bitset(intbitset3)
check_bitset(intbitset4)
> assert intbitset1.fastdump() == dumped
E AssertionError: assert b'x\x9cc``dp\...03\x00*L\x00S' == b'x\x9cc`\x10...x00*\xb6\x00S'
E At index 4 diff: b'`' != b'\x10'
E Use -v to get more diff
tests/test_intbitset.py:765: AssertionError
______________________ test_set_consistency[20-120-1201] _______________________
original = (20, 30, 1000, 41)
dumped = b'x\x9cc`\x10p``b\x18\x18\xc0\x88`\x02\x00+9\x00T'
dumped_trailing_bits = b'x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF'
@pytest.mark.parametrize(
argnames=["original", "dumped", "dumped_trailing_bits"],
argvalues=[
(
(20, 30, 1000, 40),
b("x\x9cc`\x10p``d\x18\x18\x80d/\x00*\xb6\x00S"),
b("x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF"),
),
(
(20, 30, 1000, 41),
b("x\x9cc`\x10p``b\x18\x18\xc0\x88`\x02\x00+9\x00T"),
b("x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF"),
),
(
(20, 30, 1001, 41),
b("x\x9cc`\x10p``b\x18\x18\x80d/\x00+D\x00U"),
b("x\x9cc`\x10p`\x18(\xf0\xef?\x1c\x00\x00k\xdb\x0bE"),
),
],
ids=lambda s: s[0],
)
def test_set_consistency(original, dumped, dumped_trailing_bits):
intbitset1 = intbitset(original)
intbitset2 = intbitset(original, trailing_bits=True)
intbitset3 = intbitset(dumped)
intbitset4 = intbitset(dumped_trailing_bits)
check_bitset(intbitset1)
check_bitset(intbitset2)
check_bitset(intbitset3)
check_bitset(intbitset4)
> assert intbitset1.fastdump() == dumped
E AssertionError: assert b'x\x9cc``bp\...x00*\xd2\x00T' == b'x\x9cc`\x10...02\x00+9\x00T'
E At index 4 diff: b'`' != b'\x10'
E Use -v to get more diff
tests/test_intbitset.py:765: AssertionError
______________________ test_set_consistency[20-120-1202] _______________________
original = (20, 30, 1001, 41)
dumped = b'x\x9cc`\x10p``b\x18\x18\x80d/\x00+D\x00U'
dumped_trailing_bits = b'x\x9cc`\x10p`\x18(\xf0\xef?\x1c\x00\x00k\xdb\x0bE'
@pytest.mark.parametrize(
argnames=["original", "dumped", "dumped_trailing_bits"],
argvalues=[
(
(20, 30, 1000, 40),
b("x\x9cc`\x10p``d\x18\x18\x80d/\x00*\xb6\x00S"),
b("x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF"),
),
(
(20, 30, 1000, 41),
b("x\x9cc`\x10p``b\x18\x18\xc0\x88`\x02\x00+9\x00T"),
b("x\x9cc`\x10p`\x18(\xf0\x1f\x01\x00k\xe6\x0bF"),
),
(
(20, 30, 1001, 41),
b("x\x9cc`\x10p``b\x18\x18\x80d/\x00+D\x00U"),
b("x\x9cc`\x10p`\x18(\xf0\xef?\x1c\x00\x00k\xdb\x0bE"),
),
],
ids=lambda s: s[0],
)
def test_set_consistency(original, dumped, dumped_trailing_bits):
intbitset1 = intbitset(original)
intbitset2 = intbitset(original, trailing_bits=True)
intbitset3 = intbitset(dumped)
intbitset4 = intbitset(dumped_trailing_bits)
check_bitset(intbitset1)
check_bitset(intbitset2)
check_bitset(intbitset3)
check_bitset(intbitset4)
> assert intbitset1.fastdump() == dumped
E AssertionError: assert b'x\x9cc``bp\...x00*\xe0\x00U' == b'x\x9cc`\x10...d/\x00+D\x00U'
E At index 4 diff: b'`' != b'\x10'
E Use -v to get more diff
tests/test_intbitset.py:765: AssertionError
=========================== short test summary info ============================
FAILED tests/test_intbitset.py::test_set_consistency[20-120-1200] - Assertion...
FAILED tests/test_intbitset.py::test_set_consistency[20-120-1201] - Assertion...
FAILED tests/test_intbitset.py::test_set_consistency[20-120-1202] - Assertion...
======================= 3 failed, 13927 passed in 25.36s =======================
Metadata
Metadata
Assignees
Labels
No labels