X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/385caa2fd0f72e17e35eb9c28b6233c1a5197e88..ae6ce3ffebbe033d7fee4a3fc5f3518397305d02:/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."""