Repository: hazelcast/hazelcast-python-client (language: python)

Issue:
run_tests.py does not work in my local computer (don't know why)
Install dependencies: `pip3 install -r requirements-dev.txt`

Run 
```python3
import os
import socket
import sys
import logging
import time
from contextlib import closing

logging.basicConfig(level=logging.DEBUG)
import nose

from start_rc import start_rc


def wait_until_rc_is_ready():
    timeout = 300 + time.time()
    while time.time() < timeout:
        with closing(socket.socket()) as sock:
            if sock.connect_ex(("localhost", 9701)) == 0:
                return
            print("Remote controller is not ready yet. Sleeping 1 second.")
            time.sleep(1)

    raise Exception("Remote controller failed to start.")


if __name__ == "__main__":
    with open("rc_stdout.log", "w") as rc_stdout:
        with open("rc_stderr.log", "w") as rc_stderr:
            rc_process = start_rc(rc_stdout, rc_stderr)
            try:
                wait_until_rc_is_ready()
                args = [
                    __file__,
                    "-v",
                    "--with-xunit",
                    "--with-coverage",
                    "--cover-xml",
                    "--cover-package=hazelcast",
                    "--cover-inclusive",
                    "--nologcapture",
                ]

                enterprise_key = os.environ.get("HAZELCAST_ENTERPRISE_KEY", None)
                if not enterprise_key:
                    args.extend(["-A", "not enterprise"])

                return_code = nose.run_exit(argv=args)
                rc_process.kill()
                rc_process.wait()
                sys.exit(return_code)
            except:
                rc_process.kill()
                rc_process.wait()
                raise

```

This creates rc:

```
(venv) serkan@hazelcast:~/forked/hazelcast-python-client$ lsof -i :9701
COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    56234 serkan   21u  IPv6 514434      0t0  TCP *:9701 (LISTEN)
```


RC logs:

stderr
```
```

stdout
```
13:34:24,554  INFO [Main] - Starting Remote Controller Server on port:9701
13:34:24,555  INFO [Main] - TServerEventHandler.preServe - server starts accepting connections
13:34:25,206  INFO [Main] - TServerEventHandler.createContext - new client context created
13:34:25,206  INFO [Main] - Cleaning the R.C. Cluster Manager
13:34:25,206  INFO [Main] - Shutting down the cluster.
13:34:25,267  INFO [Main] - TServerEventHandler.deleteContext client
```

seems like test runner cannot connect to RC:

logs of run_tests.py include client's logs:
```
hazelcast.errors.TargetDisconnectedError: [Errno 111] Connection refused
WARNING:hazelcast.connection:Unable to get live cluster connection, retry in 6.08s, attempt: 38, cluster connect timeout: INFINITE, max backoff: 30.00s
INFO:hazelcast.connection:Trying to connect to Address(host=127.0.0.1, port=5701)

```


other processes can access to rc(nodejs tests etc)


tried with plain terminal too, same(not integrated terminal of jetbrains)


Discussion / hints:

Fix patch:
diff --git a/.gitignore b/.gitignore
index 792e84e27f..21159ed8ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,8 @@ __pycache__/
 # Distribution / packaging
 .Python
 env/
+venv/
+.venv/
 build/
 develop-eggs/
 dist/


Test patch:
diff --git a/run_tests.py b/run_tests.py
index b2b5570d27..c1788f91f8 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -36,6 +36,7 @@ def wait_until_rc_is_ready():
                     "--cover-package=hazelcast",
                     "--cover-inclusive",
                     "--nologcapture",
+                    "tests",
                 ]
 
                 enterprise_key = os.environ.get("HAZELCAST_ENTERPRISE_KEY", None)