Improve str() and object.__str__() documentation (issue #13538).

This commit is contained in:
Chris Jerdonek 2012-11-20 17:31:02 -08:00
parent 39bdad813a
commit 17fc44c9b3
7 changed files with 96 additions and 44 deletions

View file

@ -1184,6 +1184,7 @@ class BuiltinTest(unittest.TestCase):
self.assertRaises(TypeError, setattr, sys, 1, 'spam')
self.assertRaises(TypeError, setattr)
# test_str(): see test_unicode.py and test_bytes.py for str() tests.
def test_sum(self):
self.assertEqual(sum([]), 0)