File project.diff of Package python-Twisted

--- python-38-hmac-digestmod.patch.orig
+++ python-38-hmac-digestmod.patch
@@ -1,8 +1,8 @@
-Index: Twisted-19.10.0/src/twisted/cred/credentials.py
+Index: b/src/twisted/cred/credentials.py
 ===================================================================
---- Twisted-19.10.0.orig/src/twisted/cred/credentials.py
-+++ Twisted-19.10.0/src/twisted/cred/credentials.py
-@@ -439,7 +439,8 @@ class CramMD5Credentials(object):
+--- a/src/twisted/cred/credentials.py
++++ b/src/twisted/cred/credentials.py
+@@ -441,7 +441,8 @@ class CramMD5Credentials(object):
  
  
      def checkPassword(self, password):
@@ -12,10 +12,10 @@ Index: Twisted-19.10.0/src/twisted/cred/
          return verify == self.response
  
  
-Index: Twisted-19.10.0/src/twisted/cred/test/test_cramauth.py
+Index: b/src/twisted/cred/test/test_cramauth.py
 ===================================================================
---- Twisted-19.10.0.orig/src/twisted/cred/test/test_cramauth.py
-+++ Twisted-19.10.0/src/twisted/cred/test/test_cramauth.py
+--- a/src/twisted/cred/test/test_cramauth.py
++++ b/src/twisted/cred/test/test_cramauth.py
 @@ -7,6 +7,7 @@ Tests for L{twisted.cred}'s implementati
  
  from __future__ import division, absolute_import
@@ -52,10 +52,10 @@ Index: Twisted-19.10.0/src/twisted/cred/
          self.assertTrue(c.checkPassword(b'supersecret'))
          self.assertEqual(c.username, b"squirrel")
  
-Index: Twisted-19.10.0/src/twisted/mail/test/test_pop3.py
+Index: b/src/twisted/mail/test/test_pop3.py
 ===================================================================
---- Twisted-19.10.0.orig/src/twisted/mail/test/test_pop3.py
-+++ Twisted-19.10.0/src/twisted/mail/test/test_pop3.py
+--- a/src/twisted/mail/test/test_pop3.py
++++ b/src/twisted/mail/test/test_pop3.py
 @@ -12,6 +12,7 @@ import base64
  import itertools
  
--- python-38-no-cgi-parseqs.patch.orig
+++ python-38-no-cgi-parseqs.patch
@@ -1,7 +1,7 @@
-Index: Twisted-19.10.0/src/twisted/web/test/test_http.py
+Index: b/src/twisted/web/test/test_http.py
 ===================================================================
---- Twisted-19.10.0.orig/src/twisted/web/test/test_http.py
-+++ Twisted-19.10.0/src/twisted/web/test/test_http.py
+--- a/src/twisted/web/test/test_http.py
++++ b/src/twisted/web/test/test_http.py
 @@ -9,15 +9,14 @@ from __future__ import absolute_import,
  
  import base64
@@ -20,7 +20,7 @@ Index: Twisted-19.10.0/src/twisted/web/t
  
  from io import BytesIO
  from itertools import cycle
-@@ -2156,15 +2155,15 @@ Hello,
+@@ -2373,15 +2372,15 @@ ok
  class QueryArgumentsTests(unittest.TestCase):
      def testParseqs(self):
          self.assertEqual(
--- python-Twisted.changes.orig
+++ python-Twisted.changes
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Thu Sep 24 09:03:15 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
+
+- Disable a single failing assert with current cryptography:
+  disable-alt-rsa-key-comparison.patch
+- Refreshed other patches with offsets
+
+-------------------------------------------------------------------
 Thu May 28 12:43:51 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
 
 - Update to 20.3.0
--- python-Twisted.spec.orig
+++ python-Twisted.spec
@@ -33,6 +33,7 @@ Patch3:         test-mktime-invalid-tm_i
 Patch5:         python-38-hmac-digestmod.patch
 Patch6:         python-38-no-cgi-parseqs.patch
 Patch7:         true-binary.patch
+Patch8:         disable-alt-rsa-key-comparison.patch
 BuildRequires:  %{python_module Automat >= 0.3.0}
 BuildRequires:  %{python_module PyHamcrest >= 1.9.0}
 BuildRequires:  %{python_module appdirs >= 1.4.0}
openSUSE Build Service is sponsored by