> On May 24, 2022, at 2:20 PM, Peter Westlake <[email protected]> wrote:
>
> On Tue, 24 May 2022, at 19:15, Peter Westlake wrote:
>> The ticket is #10347 <https://twistedmatrix.com/trac/ticket/10347>. I've
>> assigned myself, if that's okay.
>
> Running the tests with tox -e nocov gives an error,
> builtins.ModuleNotFoundError: No module named 'hamcrest'.
`nocov` by itself isn't really a valid environment. You probably want `tox -e
alldeps-nocov`. (In general although you have lots of options for how to
compose an environment depending on what you want to test, start with the stuff
in `tox -l` for most projects.)
> This is on Ubuntu 20.04, Python 3.8.10, and I did install python-hamcrest.
> Python 3 can import it.
Note that the python3 environment you're in as you set up `tox` is not itself
the environment `tox` is running tests in. You need to run
./.tox/{env}/bin/python, so in this case ./.tox/nocov/bin/python.
> Running just tox instead of tox -e nocov gives several "Connection reset by
> peer" and a huge number of "Cannot find link target" errors.
`tox` itself will try to run (among other things) the release preparation
environment, which will probably mess things up.
> How should I run the tests?
Something like "tox -r -p auto -e lint -e mypy -e alldeps-nocov -e
nodeps-nocov" probably :-).
-g
> Peter.
>
> _______________________________________________
> Twisted mailing list -- [email protected] <mailto:[email protected]>
> To unsubscribe send an email to [email protected]
> <mailto:[email protected]>
> https://mail.python.org/mailman3/lists/twisted.python.org/
> <https://mail.python.org/mailman3/lists/twisted.python.org/>
> Message archived at
> https://mail.python.org/archives/list/[email protected]/message/H6Z2TDALIGXVGWDDDO3UCWSOBEVUWI7B/
>
> <https://mail.python.org/archives/list/[email protected]/message/H6Z2TDALIGXVGWDDDO3UCWSOBEVUWI7B/>
> Code of Conduct: https://twisted.org/conduct <https://twisted.org/conduct>
_______________________________________________
Twisted mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/twisted.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/7SEENMZCRVKZVGL6SMGH3CBJHW5P4ZUT/
Code of Conduct: https://twisted.org/conduct