gh-81005: Refactor str tests to reflect that str and unicode are merged in Python 3 (#13172)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Daniel Fortunov 2023-05-23 15:11:29 +01:00 committed by GitHub
parent 76170f5458
commit ddb1485953
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 39 deletions

View file

@ -1614,7 +1614,7 @@ class BuiltinTest(unittest.TestCase):
msg = r"^attribute name must be string, not 'int'$"
self.assertRaisesRegex(TypeError, msg, setattr, sys, 1, 'spam')
# test_str(): see test_unicode.py and test_bytes.py for str() tests.
# test_str(): see test_str.py and test_bytes.py for str() tests.
def test_sum(self):
self.assertEqual(sum([]), 0)