mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Improve str() and object.__str__() documentation (issue #13538).
This commit is contained in:
parent
39bdad813a
commit
17fc44c9b3
7 changed files with 96 additions and 44 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue