Re: PYTEST_ARGS isn't respected with pytest placed in USE_PYTHON
Charlie Li <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Organization | FreeBSD Project |
| Message-ID | <[email protected]> |
Nuno Teixeira wrote: > (...) > > I meant "test.py" > > Nuno Teixeira <[email protected] <mailto:[email protected]>> > escreveu (quinta, 4/09/2025 à(s) 22:18): > > It does. > > setup.py: > > #!/usr/bin/env python3 > > # Python Stream Deck Library > # Released under the MIT license > # > # dean [at] fourwalledcubicle [dot] com > # www.fourwalledcubicle.com <http://www.fourwalledcubicle.com> > # > > import argparse > import logging > import os > import sys > > sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../src')) > > from StreamDeck.DeviceManager import DeviceManager > from StreamDeck.ImageHelpers import PILHelper > from PIL import ImageDraw > import pytest > > <snip> > The upstream copy does not import pytest. The patch included in the port does not look correct, as the file is meant to be executed directly, without pytest, given that __main__ exists. -- Charlie Li ...nope, still don't have an exit line.
OpenPGP_signature.asc
(application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTHxcCLnAXo3rFg6k7P+1cn7slqBAUCaLoExQUDAAAAAAAKCRDP+1cn7slqBNqK AQC4b9QYol3v5a6/jQHlET4TvrymlL6sedaxc8HfgIsn9gEA5vIA1/YtN+7k6cHQRyiGgjHu76d/ CUGMzfD2RAdDYAA= =JPUL -----END PGP SIGNATURE-----