summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/lang/go.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-04-11 21:05:14 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2022-04-11 21:05:14 +0100
commit0f725346603f4de4473d12da502104b188ac02a4 (patch)
tree7f8254a816965d49c4d6d98da34f00c81894f7e8 /test/unit/applications/lang/go.py
parentaeed86c6829c62359e79f239b849766efb8857a7 (diff)
downloadunit-0f725346603f4de4473d12da502104b188ac02a4.tar.gz
unit-0f725346603f4de4473d12da502104b188ac02a4.tar.bz2
Tests: style.
Diffstat (limited to '')
-rw-r--r--test/unit/applications/lang/go.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/applications/lang/go.py b/test/unit/applications/lang/go.py
index 67501e9c..04af26e1 100644
--- a/test/unit/applications/lang/go.py
+++ b/test/unit/applications/lang/go.py
@@ -24,8 +24,8 @@ class TestApplicationGo(TestApplicationProto):
env['GOCACHE'] = cache_dir
shutil.copy2(
- option.test_dir + '/go/' + script + '/' + name + '.go',
- temp_dir)
+ option.test_dir + '/go/' + script + '/' + name + '.go', temp_dir
+ )
if static:
args = [
@@ -55,7 +55,8 @@ class TestApplicationGo(TestApplicationProto):
f"""module test/app
require unit.nginx.org/go v0.0.0
replace unit.nginx.org/go => {replace_path}
-""")
+"""
+ )
if option.detailed:
print("\n$ GOPATH=" + env['GOPATH'] + " " + " ".join(args))