mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Refs #23919 -- Removed unneeded str() calls
This commit is contained in:
parent
4e729feaa6
commit
042b7350a0
47 changed files with 116 additions and 164 deletions
|
|
@ -30,5 +30,5 @@ class SimpleTests(TestCase):
|
|||
# coerce the returned value.
|
||||
self.assertIsInstance(obj.__str__(), str)
|
||||
self.assertIsInstance(obj.__repr__(), str)
|
||||
self.assertEqual(str(obj), str('Default object'))
|
||||
self.assertEqual(repr(obj), str('<Default: Default object>'))
|
||||
self.assertEqual(str(obj), 'Default object')
|
||||
self.assertEqual(repr(obj), '<Default: Default object>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue