Re: RunningTwisted tests on Windows and SSL

John Aherne <[email protected]>
Newsgroups gmane.comp.python.twisted
Message-ID <CAKmUHjZVPP7QE7sRPngUr3zu2Sw-cAcB39rmpeHvzzW3fU7VAw@mail.gmail.com>
Thanks.

I was using a virtualenv.

Just loaded everything again and all is now cleaner.

Now the not ported modules don't appear.

Just have the sslChainLoads test to look at.

Regards

John Aherne




On Sun, Mar 18, 2018 at 7:17 PM, Craig Rodrigues <[email protected]>
wrote:

> 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 <[email protected]>
> 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'
>>
>>
> _______________________________________________
> Twisted-Python mailing list
> [email protected]
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>


-- 
*John Aherne*




*www.rocs.co.uk <http://www.rocs.co.uk>*
020 7223 7567

_______________________________________________
Twisted-Python mailing list
[email protected]
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.