From ran at unusedvar.com Sat Dec 12 16:31:50 2020 From: ran at unusedvar.com (Ran Benita) Date: Sat, 12 Dec 2020 23:31:50 +0200 Subject: [pytest-dev] pytest 6.2.0 Message-ID: pytest-6.2.0 ======================================= The pytest team is proud to announce the 6.2.0 release! This release contains new features, improvements, bug fixes, and breaking changes, so users are encouraged to take a look at the CHANGELOG carefully: https://docs.pytest.org/en/stable/changelog.html For complete documentation, please visit: https://docs.pytest.org/en/stable/ As usual, you can upgrade from PyPI via: pip install -U pytest Thanks to all of the contributors to this release: * Adam Johnson * Albert Villanova del Moral * Anthony Sottile * Anton * Ariel Pillemer * Bruno Oliveira * Charles Aracil * Christine M * Christine Mecklenborg * Cserna Zsolt * Dominic Mortlock * Emiel van de Laar * Florian Bruhin * Garvit Shubham * Gustavo Camargo * Hugo Martins * Hugo van Kemenade * Jakob van Santen * Josias Aurel * J?rgen Gmach * Karthikeyan Singaravelan * Katarzyna * Kyle Altendorf * Manuel Mari?ez * Matthew Hughes * Matthias Gabriel * Max Voitko * Maximilian Cosmo Sitter * Mikhail Fesenko * Nimesh Vashistha * Pedro Algarvio * Petter Strandmark * Prakhar Gurunani * Prashant Sharma * Ran Benita * Ronny Pfannschmidt * Sanket Duthade * Shubham Adep * Simon K * Tanvi Mehta * Thomas Grainger * Tim Hoffmann * Vasilis Gerakaris * William Jamir Silva * Zac Hatfield-Dodds * crricks * dependabot[bot] * duthades * frankgerhardt * kwgchi * mickeypash * symonk Happy testing, The pytest Development Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimbrannlund at fastmail.com Sat Dec 12 19:13:53 2020 From: jimbrannlund at fastmail.com (=?UTF-8?Q?Jim_Br=C3=A4nnlund?=) Date: Sun, 13 Dec 2020 01:13:53 +0100 Subject: [pytest-dev] pytest 6.2.0 In-Reply-To: References: Message-ID: <996c6350-3c18-4499-ade3-130b20df97ea@www.fastmail.com> Hey all, Maybe I missunderstand, but the header of the changelog says: Backward incompatible (breaking) changes will only be introduced in major versions with advance notice in the *Deprecations* section of releases. Yet, in 6.2.0 a breaking change is introduced, dropping support of python versions prior to 3.6. A breaking change that I can't find a corresponding deprecation for (other than the official drop of 2.7, obviously). Cheers, -- Jim Br?nnlund jimbrannlund at fastmail.com On Sat, Dec 12, 2020, at 10:31 PM, Ran Benita wrote: > pytest-6.2.0 > ======================================= > > The pytest team is proud to announce the 6.2.0 release! > > This release contains new features, improvements, bug fixes, and breaking changes, so users > are encouraged to take a look at the CHANGELOG carefully: > > https://docs.pytest.org/en/stable/changelog.html > > For complete documentation, please visit: > > https://docs.pytest.org/en/stable/ > > As usual, you can upgrade from PyPI via: > > pip install -U pytest > > Thanks to all of the contributors to this release: > > * Adam Johnson > * Albert Villanova del Moral > * Anthony Sottile > * Anton > * Ariel Pillemer > * Bruno Oliveira > * Charles Aracil > * Christine M > * Christine Mecklenborg > * Cserna Zsolt > * Dominic Mortlock > * Emiel van de Laar > * Florian Bruhin > * Garvit Shubham > * Gustavo Camargo > * Hugo Martins > * Hugo van Kemenade > * Jakob van Santen > * Josias Aurel > * J?rgen Gmach > * Karthikeyan Singaravelan > * Katarzyna > * Kyle Altendorf > * Manuel Mari?ez > * Matthew Hughes > * Matthias Gabriel > * Max Voitko > * Maximilian Cosmo Sitter > * Mikhail Fesenko > * Nimesh Vashistha > * Pedro Algarvio > * Petter Strandmark > * Prakhar Gurunani > * Prashant Sharma > * Ran Benita > * Ronny Pfannschmidt > * Sanket Duthade > * Shubham Adep > * Simon K > * Tanvi Mehta > * Thomas Grainger > * Tim Hoffmann > * Vasilis Gerakaris > * William Jamir Silva > * Zac Hatfield-Dodds > * crricks > * dependabot[bot] > * duthades > * frankgerhardt > * kwgchi > * mickeypash > * symonk > > > Happy testing, > The pytest Development Team > _______________________________________________ > pytest-dev mailing list > pytest-dev at python.org > https://mail.python.org/mailman/listinfo/pytest-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ran at unusedvar.com Sun Dec 13 07:23:28 2020 From: ran at unusedvar.com (Ran Benita) Date: Sun, 13 Dec 2020 14:23:28 +0200 Subject: [pytest-dev] pytest 6.2.0 In-Reply-To: <996c6350-3c18-4499-ade3-130b20df97ea@www.fastmail.com> References: <996c6350-3c18-4499-ade3-130b20df97ea@www.fastmail.com> Message-ID: <2794d993-f11b-409b-afc7-50d62e7d0661@www.fastmail.com> On Sun, Dec 13, 2020, at 02:13, Jim Br?nnlund wrote: > Hey all, Hi! > Maybe I missunderstand, but the header of the changelog says: > > Backward incompatible (breaking) changes will only be introduced in major versions with advance notice in the *Deprecations* section of releases. > > Yet, in 6.2.0 a breaking change is introduced, dropping support of python versions prior to 3.6. A breaking change that I can't find a corresponding deprecation for (other than the official drop of 2.7, obviously). When we discussed this we decided that bumping the minimum python requirement does not require deprecation and a major version, mostly because users on older Python versions would keep getting the compatible version when using pip, so should not be affected. Does this not hold true for you? Would be interested to hear what sort of issues this caused. Ran From ilya.kazakevich at jetbrains.com Sun Dec 13 18:37:29 2020 From: ilya.kazakevich at jetbrains.com (Ilya Kazakevich) Date: Mon, 14 Dec 2020 02:37:29 +0300 Subject: [pytest-dev] Running doctest for the certain function Message-ID: Hello. I have some function with doctest in a file called "spam.py" ``` def egg(): """ >>> egg() True """ return True ``` I want to run doctest using pytest: ``pytest spam.py::egg --doctest-modules`` But it doesn't work: ==no tests ran in 0.05s == It seems that I can't run doctest for any particular function: I can run it only for the whole directory. Is this behavior intentional or a bug? Thank you. Ilya. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicoddemus at gmail.com Sun Dec 13 19:13:29 2020 From: nicoddemus at gmail.com (Bruno Oliveira) Date: Sun, 13 Dec 2020 21:13:29 -0300 Subject: [pytest-dev] Running doctest for the certain function In-Reply-To: References: Message-ID: Hi Ilya, That's the current behavior, there are no command-line/syntax to select doctests inside files. Cheers, Bruno. On Sun, Dec 13, 2020 at 8:37 PM Ilya Kazakevich via pytest-dev < pytest-dev at python.org> wrote: > Hello. > > I have some function with doctest in a file called "spam.py" > ``` > def egg(): > """ > >>> egg() > True > """ > > return True > ``` > > > I want to run doctest using pytest: > > ``pytest spam.py::egg --doctest-modules`` > > But it doesn't work: > ==no tests ran in 0.05s == > > It seems that I can't run doctest for any particular function: I can run > it only for the whole directory. > > Is this behavior intentional or a bug? > > Thank you. > > Ilya. > > > _______________________________________________ > pytest-dev mailing list > pytest-dev at python.org > https://mail.python.org/mailman/listinfo/pytest-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicoddemus at gmail.com Tue Dec 15 10:42:28 2020 From: nicoddemus at gmail.com (Bruno Oliveira) Date: Tue, 15 Dec 2020 12:42:28 -0300 Subject: [pytest-dev] pytest 6.2.1 Message-ID: pytest 6.2.1 has just been released to PyPI. This is a bug-fix release, being a drop-in replacement. To upgrade:: pip install --upgrade pytest The full changelog is available at https://docs.pytest.org/en/stable/changelog.html. Thanks to all of the contributors to this release: * Bruno Oliveira * Jakob van Santen * Ran Benita Happy testing, The pytest Development Team -------------- next part -------------- An HTML attachment was scrubbed... URL: