@@ -1775,9 +1775,6 @@ def test_invalid_hostname_in_kms_certificate(self):
1775
1775
class TestKmsTLSOptions (EncryptionIntegrationTest ):
1776
1776
@unittest .skipUnless (any (AWS_CREDS .values ()),
1777
1777
'AWS environment credentials are not set' )
1778
- @unittest .skipIf (sys .version_info [:2 ] >= (3 , 10 ) and
1779
- sys .platform == 'win32' ,
1780
- 'These tests hang with Python 3.10 on Windows' )
1781
1778
def setUp (self ):
1782
1779
super (TestKmsTLSOptions , self ).setUp ()
1783
1780
# 1, create client with only tlsCAFile.
@@ -1822,15 +1819,16 @@ def setUp(self):
1822
1819
self .addCleanup (self .client_encryption_invalid_hostname .close )
1823
1820
# Errors when client has no cert, some examples:
1824
1821
# [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2623)
1825
- self .cert_error = 'certificate required|SSL handshake failed'
1822
+ self .cert_error = ('certificate required|SSL handshake failed|'
1823
+ 'KMS connection closed' )
1826
1824
# On Windows this error might be:
1827
1825
# [WinError 10054] An existing connection was forcibly closed by the remote host
1828
1826
if sys .platform == 'win32' :
1829
1827
self .cert_error += '|forcibly closed'
1830
1828
# On Windows Python 3.10+ this error might be:
1831
1829
# EOF occurred in violation of protocol (_ssl.c:2384)
1832
1830
if sys .version_info [:2 ] >= (3 , 10 ):
1833
- self .cert_error += '|forcibly closed '
1831
+ self .cert_error += '|EOF '
1834
1832
1835
1833
def test_01_aws (self ):
1836
1834
key = {
0 commit comments