diff options
Diffstat (limited to 'src/python')
-rwxr-xr-x | src/python/botan2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/botan2.py b/src/python/botan2.py index 6f9d98a3d..6d1ee25fe 100755 --- a/src/python/botan2.py +++ b/src/python/botan2.py @@ -806,7 +806,10 @@ def test(): enc.set_key(key) enc.start(iv) - assert len(enc.update('')) == 0 + + update_result = enc.update('') + assert not update_result + ct = enc.finish(pt) print(" ciphertext %s (%d)" % (hex_encode(ct), len(ct))) |