From 3359d7efdc5e96ae25c69226a2a1452a8f6641f7 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Sat, 19 Oct 2013 19:33:06 -0400 Subject: Test what happens when an invalid line is in the cryptrec vectors --- tests/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/utils.py') diff --git a/tests/utils.py b/tests/utils.py index 03b780f8..fa7cc68d 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -90,6 +90,8 @@ def load_cryptrec_vectors(vector_data): "plaintext": pt, "ciphertext": ct }) + else: + raise ValueError("Invalid line in file '{}'".format(line)) return cryptrec_list -- cgit v1.2.3