[pypy-issue] [issue1371] test failure x2 of logbook's test_regular.py

Ian Delaney tracker at bugs.pypy.org
Fri Jan 18 12:10:12 CET 2013


Ian Delaney <della5 at iinet.com.au> added the comment:

I take it you mean;



    def test_formatting_exception(self):
        def make_record():
            return logbook.LogRecord('Test Logger', logbook.WARNING,
                                     'Hello {foo:invalid}',
                                     kwargs={'foo': 42},
                                     frame=sys._getframe())
        record = make_record()
        try:
            record.message
        except TypeError, e:
            errormsg = str(e)
        else:
            self.assertFalse('Expected exception')

        self.assert_('Could not format message with provided arguments: '
                     'Invalid conversion specification' in errormsg)

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1371>
________________________________________


More information about the pypy-issue mailing list