X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/668b5f544d001cbc6ba94a6f94f7590e4c4b9473..e5c26109231763a2464a8f8076e7b633996b5d5c:/t/t-algorithms.py diff --git a/t/t-algorithms.py b/t/t-algorithms.py index 8346fad..593e6cf 100644 --- a/t/t-algorithms.py +++ b/t/t-algorithms.py @@ -76,8 +76,7 @@ class HashBufferTestMixin (U.TestCase): ## Check overflow detection. h0, _ = makefn(w) - me.assertRaises((OverflowError, ValueError), - hashfn, h0, 1 << 8*w) + me.assertRaises(OverflowError, hashfn, h0, 1 << 8*w) def check_hashbuffer_bufn(me, w, bigendp, makefn, hashfn): """Check `hashbufN'.""" @@ -95,8 +94,7 @@ class HashBufferTestMixin (U.TestCase): if w <= 3: n = 1 << 8*w h0, _ = makefn(w + n) - me.assertRaises((ValueError, TypeError), - hashfn, h0, C.ByteString.zero(n)) + me.assertRaises(ValueError, hashfn, h0, C.ByteString.zero(n)) def check_hashbuffer(me, makefn): """Test the various `hash...' methods."""