mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Replaced unnecessary str()/bytes() calls with literals.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e649d691f8
commit
57a3d96ff5
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user