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 wolma
Recipients ethan.furman, python-dev, serhiy.storchaka, vstinner, wolma
Date 2015-04-04.14:07:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428156425.48.0.721339746513.issue23466@psf.upfronthosting.co.za>
In-reply-to
Content
the new test:

test_exc('%x', '1', TypeError, "%x format: a number is required, not str")

expects the wrong error message.

python -m unittest -v test.test_format

...
'%x' % '1' works? ... no
Unexpected  <class 'TypeError'> : '%x format: an integer is required, not str'
...

-> it's "an integer", not "a number"
History
Date User Action Args
2015-04-04 14:07:05wolmasetrecipients: + wolma, vstinner, ethan.furman, python-dev, serhiy.storchaka
2015-04-04 14:07:05wolmasetmessageid: <1428156425.48.0.721339746513.issue23466@psf.upfronthosting.co.za>
2015-04-04 14:07:05wolmalinkissue23466 messages
2015-04-04 14:07:05wolmacreate