[Twisted-Python] RunningTwisted tests on Windows and SSL
Craig Rodrigues
rodrigc at crodrigues.org
Sun Mar 18 13:17:24 MDT 2018
Do not run the tests directly from the source tree.
Instead, you should install Twisted into a virtualenv
and run "trial twisted" from inside the virtualenv and outside the source
tree.
The installer has some logic to omit the installation of certain modules
and tests
which do not work on Python 3.
You can also run the tests by using tox as specified here:
https://github.com/twisted/twisted/blob/trunk/README.rst#unit-tests
because tox takes care of setting up the virtualenv and running the
tests inside the virtualenv.
--
Craig
On Sat, Mar 17, 2018 at 2:58 AM, John Aherne <johnaherne at rocs.co.uk> wrote:
>
>
> twisted.cred.test.test_strcred.SSHCheckerTests.test_isChecker
> ============================================================
> ===================
> [ERROR]
> Traceback (most recent call last):
> File "c:\twistedssl\twisted\src\twisted\mail\test\test_mail.py", line
> 12, in <module>
> import StringIO
> builtins.ModuleNotFoundError: No module named 'StringIO'
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20180318/0ff53340/attachment-0002.html>
More information about the Twisted-Python
mailing list