1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Replaced unnecessary str()/bytes() calls with literals.

This commit is contained in:
Jon Dufresne
2019-11-18 06:30:10 -08:00
committed by Mariusz Felisiak
parent e649d691f8
commit 57a3d96ff5
2 changed files with 3 additions and 3 deletions

View File

@@ -250,7 +250,7 @@ class LiveServerPort(LiveServerBase):
def test_specified_port_bind(self):
"""LiveServerTestCase.port customizes the server's port."""
TestCase = type(str('TestCase'), (LiveServerBase,), {})
TestCase = type('TestCase', (LiveServerBase,), {})
# Find an open port and tell TestCase to use it.
s = socket.socket()
s.bind(('', 0))