未验证 提交 2ae8112e 编写于 作者: Z Zheyue Tan 提交者: GitHub

fix test_monitor_query_log_server (#374)

* fix test_monitor_query_log_server

* update requirements.txt

* fix check style

* update version

* fix setup.py
上级 4b646fe0
# requirements for unittest
rarfile==3.1
opencv-python<=4.3.0.34;python_version>="3"
opencv-python==4.2.0.32;python_version<"3"
paddlepaddle-gpu==1.6.1.post97
gym
details
......
......@@ -125,10 +125,10 @@ class TestLogServer(unittest.TestCase):
th.start()
time.sleep(1)
# start the cluster monitor
monitor_file = __file__.replace(
os.path.join('tests', 'log_server_test.pyc'), 'monitor.py')
monitor_file = monitor_file.replace(
os.path.join('tests', 'log_server_test.py'), 'monitor.py')
monitor_file = __file__.replace('log_server_test.pyc', '../monitor.py')
monitor_file = monitor_file.replace('log_server_test.py',
'../monitor.py')
command = [
sys.executable, monitor_file, "--monitor_port",
str(monitor_port), "--address", "localhost:" + str(master_port)
......
......@@ -82,7 +82,7 @@ setup(
"click",
"psutil>=5.6.2",
"flask_cors",
"visualdl>=2.0.0b;python_version>='3' and platform_system=='Linux'",
"visualdl>=2.0.0b;python_version>='3.7' and platform_system=='Linux'",
],
classifiers=[
'Intended Audience :: Developers',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册