Ticket #6265: 6265.patch

File 6265.patch, 554 bytes (added by hash14, 9 years ago)

Stricter testing of id() in test_brokenReprIncludesID

  • twisted/python/test/test_reflectpy3.py

     
    445445            breakRepr = True
    446446
    447447        xRepr = reflect.safe_repr(X)
    448         self.assertIn('0x%x' % (id(X),), xRepr)
     448        xReprExpected = '<BrokenType instance at 0x%x with repr error:' %id(X)
     449        self.assertEqual(xReprExpected, xRepr.split('\n')[0])
    449450
    450451
    451452    def test_brokenClassStr(self):