[Twisted-Python] RunningTwisted tests on Windows and SSL
This is useful info for anyone else running into these issues. At least they might save a bit of time not having to run down what is happening. Seems that the mail,email, test_hook and StringIO errors all come from not ported modules as seen in twisted\src\python\_setup.py. The _getEllipticCurve error << builtins.AttributeError: type object 'OpenSSLCertificateOptions' has no attribute '_getEllipticCurve' twisted.test.test_sslverify.OpenSSLOptionsTests.test_ecDoesNotBreakConstructor
is because getattr will raise an AttributeError, which is what it is doing
here. But it does not do this for python2.7.
The test is not to break if the ECCurve is missing. It is missing since it
is not found. Still looking at this.
With wincertstore being used, we get a failing test as follows:
[FAIL]
Traceback (most recent call last):
File "c:\twistedssl\twisted\src\twisted\web\test\test_agent.py", line
1568, in test_setsTrustRootOnContextToDefaultTrustRoot
certificateOptions.trustRoot, ssl.OpenSSLDefaultPaths)
File "c:\twistedssl\twisted\src\twisted\trial\_synctest.py", line 649, in
assertIsInstance
instance, classOrTuple, suffix))
twisted.trial.unittest.FailTest:
participants (1)
-
John Aherne