git » python-pgpy.git » commit 87a603e

FS#76281

author George Rawlinson
2022-10-29 21:11:16 UTC
committer George Rawlinson
2022-10-29 21:11:16 UTC
parent cda27d34c36bdfc734834f2c6a8214556380e076

FS#76281

idea-deprecation.patch +16 -0

diff --git a/idea-deprecation.patch b/idea-deprecation.patch
new file mode 100644
index 0000000..54bfacc
--- /dev/null
+++ b/idea-deprecation.patch
@@ -0,0 +1,16 @@
+--- a/tests/test_10_exceptions.py
++++ b/tests/test_10_exceptions.py
+@@ -230,11 +230,11 @@ class TestPGPKey(object):
+         rsa_pub.subkeys['EEE097A017B979CA'].encrypt(PGPMessage.new('asdf'),
+                                                     cipher=SymmetricKeyAlgorithm.CAST5)
+ 
+-        w = recwarn.pop(UserWarning)
++        w = recwarn.list[-2]
+         assert str(w.message) == "Selected symmetric algorithm not in key preferences"
+         assert w.filename == __file__
+ 
+-        w = recwarn.pop(UserWarning)
++        w = recwarn.list[-1]
+         assert str(w.message) == "Selected compression algorithm not in key preferences"
+         assert w.filename == __file__
+