From: Victor Wagner Date: Sat, 20 Dec 2014 12:56:52 +0000 (+0300) Subject: Remove writing of cipher.txt X-Git-Url: https://www.wagner.pp.ru/gitweb/?p=oss%2Fctypescrypto.git;a=commitdiff_plain;h=ba39d64fd2fb60c41c9cbe1f9e5044b9658d07d2 Remove writing of cipher.txt --- 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)