summaryrefslogtreecommitdiff
path: root/tests/servers
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-11-18 06:30:10 -0800
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-11-18 15:30:10 +0100
commit57a3d96ff57abffa8e7fbe3fd972a5ee39bd0fec (patch)
treea7352a514be6558a89f1f5a13b96fc440184b68a /tests/servers
parente649d691f8c6148ae5a048647783095319e036bb (diff)
downloaddjango-57a3d96ff57abffa8e7fbe3fd972a5ee39bd0fec.tar.gz
Replaced unnecessary str()/bytes() calls with literals.
Diffstat (limited to 'tests/servers')
-rw-r--r--tests/servers/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/servers/tests.py b/tests/servers/tests.py
index 243b5a4200..33d0605443 100644
--- a/tests/servers/tests.py
+++ b/tests/servers/tests.py
@@ -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))