diff options
author | prettyboy <prettyboy@yandex-team.com> | 2022-09-25 13:06:29 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2022-09-25 13:06:29 +0300 |
commit | a56f9bf1dd89a3bf9b12b3075311c0c93e84fbb2 (patch) | |
tree | 1471279703beb18e586d8aad8d1fabe5ded1182b /library/python/testing/yatest_common/yatest/common/network.py | |
parent | e14c5ad0a3b4044dab6d6c9aad1d5d76360494a7 (diff) | |
download | ydb-a56f9bf1dd89a3bf9b12b3075311c0c93e84fbb2.tar.gz |
[library/python/testing/yatest_common] Relaxed runtime methods for non-standalone runs
Diffstat (limited to 'library/python/testing/yatest_common/yatest/common/network.py')
-rw-r--r-- | library/python/testing/yatest_common/yatest/common/network.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/network.py b/library/python/testing/yatest_common/yatest/common/network.py index 37bcb1b8e0..395fed5809 100644 --- a/library/python/testing/yatest_common/yatest/common/network.py +++ b/library/python/testing/yatest_common/yatest/common/network.py @@ -126,8 +126,11 @@ class PortManager(object): # Can't find required number of ports without gap in the current range drop_candidates() - raise PortManagerException("Failed to find valid port range (start_port: {} count: {}) (range: {} used: {})".format( - start_port, count, self._valid_range, self._filelocks)) + raise PortManagerException( + "Failed to find valid port range (start_port: {} count: {}) (range: {} used: {})".format( + start_port, count, self._valid_range, self._filelocks + ) + ) def _count_valid_ports(self): res = 0 @@ -157,7 +160,9 @@ class PortManager(object): continue return probe_port - raise PortManagerException("Failed to find valid port (range: {} used: {})".format(self._valid_range, self._filelocks)) + raise PortManagerException( + "Failed to find valid port (range: {} used: {})".format(self._valid_range, self._filelocks) + ) def _capture_port(self, port, sock_type): with self._lock: |