Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-full.lib.python3.7.site-packages.swh.model.tests.test_hashutil::test_new_hash_blake2b_builtin
Failed

TEST RESULT

Run At
Dec 6 2021, 4:25 PM
Details
@pytest.mark.skipif( "blake2b" not in hashlib.algorithms_available, reason="blake2b not built-in" ) def test_new_hash_blake2b_builtin(): removed_hash = False try: if "blake2b512" in hashlib.algorithms_available: removed_hash = True hashlib.algorithms_available.remove("blake2b512") with patch_blake2("hashlib.blake2b") as mock_blake2b: mock_blake2b.return_value = sentinel = object() h = hashutil._new_hash("blake2b512") > assert h is sentinel E assert <blake2b512 HASH object @ 0x7f217efb0b20> is <object object at 0x7f2181fbab50> .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_hashutil.py:226: AssertionError