Commit b5f3a455 authored by Łukasz Nowak's avatar Łukasz Nowak

- check for system arguments only when executed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25740 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d99e867c
......@@ -6,11 +6,6 @@ import socket
import time
import sys
assert len(sys.argv) == 3, 'Requires exactly 2 arguments: <address> <port>'
address = sys.argv[1]
port = int(sys.argv[2])
class TIDClient:
def __init__(self, address):
self._to_server = socket.socket()
......@@ -283,6 +278,12 @@ class TestTIDServerV2:
sys.stdout.write(message)
if __name__ == '__main__':
assert len(sys.argv) == 3, 'Requires exactly 2 arguments: <address> <port>'
address = sys.argv[1]
port = int(sys.argv[2])
test = TestTIDServerV2(address, port)
test.run()
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