11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit 284b0fcc authored by di68kap's avatar di68kap

- test_server.py: bugfix

parent 243472fa
...@@ -23,6 +23,7 @@ limitations under the License. ...@@ -23,6 +23,7 @@ limitations under the License.
import asyncio import asyncio
import json import json
import os import os
import platform
import subprocess import subprocess
import sys import sys
import time import time
...@@ -236,7 +237,9 @@ class TestSpawning: ...@@ -236,7 +237,9 @@ class TestSpawning:
scriptname = os.path.join(self.tmpdir, 'spawn_server.py') scriptname = os.path.join(self.tmpdir, 'spawn_server.py')
with open(scriptname, 'w') as f: with open(scriptname, 'w') as f:
f.write(RUN_SERVER_SCRIPT) f.write(RUN_SERVER_SCRIPT)
subprocess.Popen(['python3', scriptname]) nulldevice = " >/dev/null" if platform.system() != "Windows" else " > NUL"
interpreter = 'python3' if os.system('python3 -V' + nulldevice) == 0 else 'python'
subprocess.Popen([interpreter, scriptname])
async def identify(): async def identify():
countdown = 20 countdown = 20
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment