mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Refs #23919 -- Removed unneeded str() calls
This commit is contained in:
@@ -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>')
|
||||
|
||||
Reference in New Issue
Block a user