15
0
Files
python-Twisted/hyperlink.patch
Tomáš Chvátal ecc1a16a2c - Update to 19.2.0:
* twisted.internet.ssl.CertificateOptions now uses 32 random bytes instead of an MD5 hash for the ssl session identifier context. (#9463)
  * DeferredLock and DeferredSemaphore can be used as asynchronous context managers on Python 3.5+. (#9546)
  * t.i.b.BaseConnector has custom __repr__ (#9548)
  * twisted.internet.ssl.optionsForClientTLS now supports validating IP addresses from the certificate subjectAltName (#9585)
  * Twisted's minimum Cryptography requirement is now 2.5. (#9592)
  * twisted.conch.ssh.keys can now read private keys in the new "openssh-key-v1" format, introduced in OpenSSH 6.5 and made the default in OpenSSH 7.8. (#9515)
  * twisted.web.client.HostnameCachingHTTPSPolicy was added as a new contextFactory option. The policy caches a specified number of twisted.internet.interfaces.IOpenSSLClientConnectionCreator instances to to avoid the cost of instantiating a connection creator for multiple requests to the same host. (#9138)
- Remove merged patches:
  * openssl-errormsg.aptch
  * openssl111.patch
- Add patch to tests for new hyperlink:
  * hyperlink.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=79
2019-05-22 10:39:29 +00:00

37 lines
1.4 KiB
Diff

From 46fc370d6b49a241fb05815ccdc7406f0e430183 Mon Sep 17 00:00:00 2001
From: Tom Most <twm@freecog.net>
Date: Mon, 8 Apr 2019 22:38:23 -0700
Subject: [PATCH] Remove test_parseEqualSignInParamValue
Twisted should not test Hyperlink's behavior so extensively, as
discussed at https://github.com/python-hyper/hyperlink/pull/39
---
src/twisted/python/test/test_url.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/src/twisted/python/test/test_url.py b/src/twisted/python/test/test_url.py
index e36c2ca01b..7d55f10fd1 100644
--- a/src/twisted/python/test/test_url.py
+++ b/src/twisted/python/test/test_url.py
@@ -476,20 +476,6 @@ def test_queryRemove(self):
)
- def test_parseEqualSignInParamValue(self):
- """
- Every C{=}-sign after the first in a query parameter is simply included
- in the value of the parameter.
- """
- u = URL.fromText('http://localhost/?=x=x=x')
- self.assertEqual(u.get(u''), ['x=x=x'])
- self.assertEqual(u.asText(), 'http://localhost/?=x%3Dx%3Dx')
- u = URL.fromText('http://localhost/?foo=x=x=x&bar=y')
- self.assertEqual(u.query, (('foo', 'x=x=x'),
- ('bar', 'y')))
- self.assertEqual(u.asText(), 'http://localhost/?foo=x%3Dx%3Dx&bar=y')
-
-
def test_empty(self):
"""
An empty L{URL} should serialize as the empty string.