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 rbcollins
Recipients docs@python, ezio.melotti, michael.foord, rbcollins, redixin
Date 2015-08-21.01:41:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440121294.05.0.137322228835.issue24247@psf.upfronthosting.co.za>
In-reply-to
Content
It did that because you did not specify a top level directory. Without that, the cwd is not on the path and that breaks many environments.

We should probably document it better. The workaround for your needs is to either just run 'unittest discover', or run 'unittest discover tests -t .', not 'unittest discover tests'.

The behaviour is however something I believe to be correct and essential to most user experiences.
History
Date User Action Args
2015-08-21 01:41:34rbcollinssetrecipients: + rbcollins, ezio.melotti, michael.foord, docs@python, redixin
2015-08-21 01:41:34rbcollinssetmessageid: <1440121294.05.0.137322228835.issue24247@psf.upfronthosting.co.za>
2015-08-21 01:41:33rbcollinslinkissue24247 messages
2015-08-21 01:41:33rbcollinscreate