From ba39d64fd2fb60c41c9cbe1f9e5044b9658d07d2 Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Sat, 20 Dec 2014 15:56:52 +0300 Subject: [PATCH] Remove writing of cipher.txt --- tests/testcipher.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/testcipher.py b/tests/testcipher.py index 3cc848c..cb59802 100644 --- a/tests/testcipher.py +++ b/tests/testcipher.py @@ -85,8 +85,6 @@ class TestEncryptDecrypt(unittest.TestCase): c=cipher.new("bf-ofb",encryptkey,iv=iv) ciphertext=c.update(data)+c.finish() decryptkey=encryptkey[0:5]+encryptkey[5:] - with open("cipher.txt","w") as f: - f.write(repr(ciphertext)+"\n") d=cipher.new("bf-ofb",decryptkey,encrypt=False,iv=iv) deciph=d.update(ciphertext)+d.finish() self.assertEqual(deciph,data) -- 2.39.5