From 6c29d74cfb60ba9480f2fcef18459cc532b2f33b Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 1 Aug 2017 19:27:06 -0500 Subject: deprecate auto-idna on UniformResourceIdentifier (#3832) * deprecate auto-idna on UniformResourceIdentifier * fix repr test * docs * some updated language --- tests/test_x509.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_x509.py') diff --git a/tests/test_x509.py b/tests/test_x509.py index 661461d4..58d3e546 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -229,7 +229,7 @@ class TestCertificateRevocationList(object): ) ]) assert ian.value == x509.IssuerAlternativeName([ - x509.UniformResourceIdentifier(u"https://cryptography.io"), + x509.UniformResourceIdentifier(b"https://cryptography.io"), ]) def test_signature(self, backend): @@ -1506,7 +1506,7 @@ class TestCertificateBuilder(object): aia = x509.AuthorityInformationAccess([ x509.AccessDescription( x509.ObjectIdentifier("2.999.7"), - x509.UniformResourceIdentifier(u"http://example.com") + x509.UniformResourceIdentifier(b"http://example.com") ), ]) @@ -3154,11 +3154,11 @@ class TestCertificateSigningRequestBuilder(object): aia = x509.AuthorityInformationAccess([ x509.AccessDescription( AuthorityInformationAccessOID.OCSP, - x509.UniformResourceIdentifier(u"http://ocsp.domain.com") + x509.UniformResourceIdentifier(b"http://ocsp.domain.com") ), x509.AccessDescription( AuthorityInformationAccessOID.CA_ISSUERS, - x509.UniformResourceIdentifier(u"http://domain.com/ca.crt") + x509.UniformResourceIdentifier(b"http://domain.com/ca.crt") ) ]) -- cgit v1.2.3