~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
algorithms.c: Use `RETURN_ME' rather than doing the job by hand.
[catacomb-python]
/
t
/
t-algorithms.py
diff --git
a/t/t-algorithms.py
b/t/t-algorithms.py
index
8346fad
..
593e6cf
100644
(file)
--- a/
t/t-algorithms.py
+++ b/
t/t-algorithms.py
@@
-76,8
+76,7
@@
class HashBufferTestMixin (U.TestCase):
## Check overflow detection.
h0, _ = makefn(w)
## 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'."""
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)
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."""
def check_hashbuffer(me, makefn):
"""Test the various `hash...' methods."""