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 vinay.sajip
Recipients chris.jerdonek, ezio.melotti, michael.foord, piotr.dobrogost, vinay.sajip
Date 2012-10-29.00:38:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351471105.29.0.0105942095916.issue16312@psf.upfronthosting.co.za>
In-reply-to
Content
@Michael: When unit testing one's own projects, I agree with you. But I think Piotr's use case is when you download some new library from PyPI or clone it from GitHub/BitBucket/etc., and you want to run tests on that code without changing any of it, as you're just exploring at this point. Now ideally you'd just be able to do e.g.

python setup.py test --logconfig filename.json

or, if it isn't set up to do that, at least look for a test folder with scripts that have 'if __name__ == "__main__": unittest.main()', which I can then run. In either of these cases, even if the library I'm testing uses logging, I can't readily make use of it to look at DEBUG messages, say, unless I write some code (not much code, I grant you).

Of course, once you get to the point where you've decided to use that library in your project, you would integrate its logging setup with the logging setup of your own code, in your tests.
History
Date User Action Args
2012-10-29 00:38:25vinay.sajipsetrecipients: + vinay.sajip, ezio.melotti, michael.foord, chris.jerdonek, piotr.dobrogost
2012-10-29 00:38:25vinay.sajipsetmessageid: <1351471105.29.0.0105942095916.issue16312@psf.upfronthosting.co.za>
2012-10-29 00:38:25vinay.sajiplinkissue16312 messages
2012-10-29 00:38:25vinay.sajipcreate