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 a.badger
Recipients a.badger, anthonypjshaw, ezio.melotti, louielu, r.david.murray, rbcollins, serhiy.storchaka, sih4sing5hong5, vstinner
Date 2019-05-10.16:59:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
From the description, I think the bug is that filenames that *begin* with non-ascii are not searched for tests.  Looking at the test_dir.tar.gz contents,  this is the test case that I'd use:


$ python3 -m unittest discover -vv -p '*.py'
test_走 (tests試驗.Test試驗.試驗) ... ok
test_走 (tests試驗.test試驗.試驗) ... ok

Ran 2 tests in 0.000s


$ /srv/python/cpython/python -m unittest discover -vv -p '*.py'
test_走 (tests試驗.Test試驗.試驗) ... ok
test_走 (tests試驗.test試驗.試驗) ... ok
test_走 (tests試驗.試驗.試驗) ... ok

Ran 3 tests in 0.000s


isidentifier() is used because filenames to be discovered must be importable and thus valid identifiers:
Date User Action Args
2019-05-10 16:59:09a.badgersetrecipients: + a.badger, vstinner, rbcollins, ezio.melotti, r.david.murray, serhiy.storchaka, sih4sing5hong5, louielu, anthonypjshaw
2019-05-10 16:59:09a.badgersetmessageid: <>
2019-05-10 16:59:09a.badgerlinkissue24263 messages
2019-05-10 16:59:09a.badgercreate