You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2020/10/27 13:53:53 UTC

[qpid-dispatch] branch dev-protocol-adaptors-2 updated: DISPATCH-1807: Replace assert with raise; fixes tox test failure

This is an automated email from the ASF dual-hosted git repository.

chug pushed a commit to branch dev-protocol-adaptors-2
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git


The following commit(s) were added to refs/heads/dev-protocol-adaptors-2 by this push:
     new a02a0ef  DISPATCH-1807: Replace assert with raise; fixes tox test failure
a02a0ef is described below

commit a02a0ef0a0445b5033fe1ea2496bb77dda35d217
Author: Chuck Rolke <ch...@apache.org>
AuthorDate: Tue Oct 27 09:53:42 2020 -0400

    DISPATCH-1807: Replace assert with raise; fixes tox test failure
---
 tests/CMakeLists.txt     | 3 +++
 tests/TCP_echo_server.py | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index cf36a1d..be46d3a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -161,6 +161,7 @@ foreach(py_test_module
     system_tests_open_properties
     system_tests_http2
     system_tests_http1_adaptor
+    system_tests_tcp_adaptor
     )
 
   add_test(${py_test_module} ${TEST_WRAP} ${PYTHON_TEST_COMMAND} -v ${py_test_module})
@@ -233,6 +234,8 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/policy-2/policy-photoserver-sasl.sasldb  D
 file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/policy-3/test-sender-receiver-limits.json DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/policy-3)
 file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/policy-4/management-access.json  DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/policy-4/)
 file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/authservice.py  DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/TCP_echo_server.py  DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/TCP_echo_client.py  DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
 
 # following install() functions will be called only if you do a make "install"
 install(FILES ${SYSTEM_TEST_FILES}
diff --git a/tests/TCP_echo_server.py b/tests/TCP_echo_server.py
index bdfecfe..44aefd7 100755
--- a/tests/TCP_echo_server.py
+++ b/tests/TCP_echo_server.py
@@ -104,7 +104,7 @@ def main_except(sock, port, echo_count, timeout, logger):
                     if key.fileobj is sock:
                         do_accept(key.fileobj, sel, logger)
                     else:
-                        assert(False, "Only listener 'sock' has None in opaque data field")
+                        raise Exception("Only listener 'sock' has None in opaque data field")
                 else:
                     total_echoed += do_service(key, mask, sel, logger)
         else:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org