summaryrefslogtreecommitdiffhomepage
path: root/test/python
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-10-18 01:10:11 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2021-10-18 01:10:11 +0100
commit39adb292d54403d17f86f6852e87b0bda1d49946 (patch)
tree7fa2af8711216ed81bbf60531d990acd3a6f1013 /test/python
parent78a4063063b8f810a616d74a358ef150faff96db (diff)
downloadunit-39adb292d54403d17f86f6852e87b0bda1d49946.tar.gz
unit-39adb292d54403d17f86f6852e87b0bda1d49946.tar.bz2
Tests: style.
Diffstat (limited to 'test/python')
-rw-r--r--test/python/restart/v1.py2
-rw-r--r--test/python/restart/v2.py2
-rw-r--r--test/python/threading/asgi.py3
-rw-r--r--test/python/threading/wsgi.py2
-rw-r--r--test/python/threads/asgi.py3
-rw-r--r--test/python/threads/wsgi.py2
-rw-r--r--test/python/upload/wsgi.py2
7 files changed, 5 insertions, 11 deletions
diff --git a/test/python/restart/v1.py b/test/python/restart/v1.py
index 2e45b269..08f7dd64 100644
--- a/test/python/restart/v1.py
+++ b/test/python/restart/v1.py
@@ -1,5 +1,3 @@
-import os
-
def application(environ, start_response):
body = "v1".encode()
diff --git a/test/python/restart/v2.py b/test/python/restart/v2.py
index 59e3d30f..163d0d17 100644
--- a/test/python/restart/v2.py
+++ b/test/python/restart/v2.py
@@ -1,5 +1,3 @@
-import os
-
def application(environ, start_response):
body = "v2".encode()
diff --git a/test/python/threading/asgi.py b/test/python/threading/asgi.py
index c4169a24..fed6fcce 100644
--- a/test/python/threading/asgi.py
+++ b/test/python/threading/asgi.py
@@ -1,7 +1,6 @@
-import asyncio
import sys
-import time
import threading
+import time
class Foo(threading.Thread):
diff --git a/test/python/threading/wsgi.py b/test/python/threading/wsgi.py
index adaa2a37..48a73afd 100644
--- a/test/python/threading/wsgi.py
+++ b/test/python/threading/wsgi.py
@@ -1,6 +1,6 @@
import sys
-import time
import threading
+import time
class Foo(threading.Thread):
diff --git a/test/python/threads/asgi.py b/test/python/threads/asgi.py
index ff4e52ad..0537f59b 100644
--- a/test/python/threads/asgi.py
+++ b/test/python/threads/asgi.py
@@ -1,6 +1,5 @@
-import asyncio
-import time
import threading
+import time
async def application(scope, receive, send):
diff --git a/test/python/threads/wsgi.py b/test/python/threads/wsgi.py
index cc283cfe..35db2d07 100644
--- a/test/python/threads/wsgi.py
+++ b/test/python/threads/wsgi.py
@@ -1,5 +1,5 @@
-import time
import threading
+import time
def application(environ, start_response):
diff --git a/test/python/upload/wsgi.py b/test/python/upload/wsgi.py
index 953c5ecc..2c820d06 100644
--- a/test/python/upload/wsgi.py
+++ b/test/python/upload/wsgi.py
@@ -1,5 +1,5 @@
+import cgi
from tempfile import TemporaryFile
-import os, cgi
def read(environ):