This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients Leonardofreua, barry, belopolsky, benjamin.peterson, berker.peksag, brett.cannon, eric.araujo, erlendaasland, ezio.melotti, ghaering, gmwils, gpolo, michael.foord, ned.deily, r.david.murray, rhettinger, tarek, terry.reedy, theller, zach.ware
Date 2021-10-26.08:26:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635236816.91.0.390445466919.issue10572@roundup.psfhosted.org>
In-reply-to
Content
A side-effect of keeping tests inside the package, is that they appear in the package contents module docstring, which may be slightly confusing to new users.

>>> import sqlite3
>>> help(sqlite3)
Help on package sqlite3:

NAME
    sqlite3

DESCRIPTION

[...]

PACKAGE CONTENTS
    dbapi2
    dump
    test (package)



Regarding history: Serhiy already moved the sqlite3 test files (see commit 3e19409d6443c66a6a7d62f58b2bb4e8330e56c4 of 2021-09-13). If one worries about needing to add the --follow switch to git log, or possibly backporting issues, that train already left the station:

$ git log --oneline Lib/sqlite3/test/test_dbapi.py | wc -l
       4
$ git log --follow --oneline Lib/sqlite3/test/test_dbapi.py | wc -l
      71


So, I'm +1 regarding moving the sqlite3 tests :)
History
Date User Action Args
2021-10-26 08:26:57erlendaaslandsetrecipients: + erlendaasland, barry, brett.cannon, theller, rhettinger, terry.reedy, ghaering, belopolsky, benjamin.peterson, tarek, gpolo, ned.deily, ezio.melotti, eric.araujo, r.david.murray, michael.foord, berker.peksag, zach.ware, gmwils, Leonardofreua
2021-10-26 08:26:56erlendaaslandsetmessageid: <1635236816.91.0.390445466919.issue10572@roundup.psfhosted.org>
2021-10-26 08:26:56erlendaaslandlinkissue10572 messages
2021-10-26 08:26:56erlendaaslandcreate