diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-08-01 19:27:06 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2017-08-01 20:27:06 -0400 |
commit | 6c29d74cfb60ba9480f2fcef18459cc532b2f33b (patch) | |
tree | a3ae324d93b584b67171a265fa2bc74ccb3372fd /tests/test_x509.py | |
parent | 7f40239ea2a8ac276f8dbf07fd51d1ff5e98c565 (diff) | |
download | cryptography-6c29d74cfb60ba9480f2fcef18459cc532b2f33b.tar.gz cryptography-6c29d74cfb60ba9480f2fcef18459cc532b2f33b.tar.bz2 cryptography-6c29d74cfb60ba9480f2fcef18459cc532b2f33b.zip |
deprecate auto-idna on UniformResourceIdentifier (#3832)
* deprecate auto-idna on UniformResourceIdentifier
* fix repr test
* docs
* some updated language
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r-- | tests/test_x509.py | 8 |
1 files changed, 4 insertions, 4 deletions
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") ) ]) |