You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/09/29 11:18:26 UTC
[qpid-python] 08/09: QPID-8631: Use the // operator to divide ints when desiring an int result
This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-python.git
commit e4b2a2f1e0e789b105680a5e9f46e6c2b9296805
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Sun Apr 16 18:08:08 2023 +0200
QPID-8631: Use the // operator to divide ints when desiring an int result
---
qpid/tests/messaging/endpoints.py | 2 +-
qpid_tests/broker_0_9/echo.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/qpid/tests/messaging/endpoints.py b/qpid/tests/messaging/endpoints.py
index a5c6d17..a3d3385 100644
--- a/qpid/tests/messaging/endpoints.py
+++ b/qpid/tests/messaging/endpoints.py
@@ -819,7 +819,7 @@ class ReceiverTests(Base):
self.sleep()
self.assertAvailable(self.rcv)
- first = capacity/2
+ first = capacity//2
second = capacity - first
self.drain(self.rcv, limit = first)
self.sleep()
diff --git a/qpid_tests/broker_0_9/echo.py b/qpid_tests/broker_0_9/echo.py
index 6391d33..3cbf764 100644
--- a/qpid_tests/broker_0_9/echo.py
+++ b/qpid_tests/broker_0_9/echo.py
@@ -46,7 +46,7 @@ class EchoTests(TestBase):
self.echo_message(body)
def test_multiple_frame_message(self):
- size = self.frame_max_size * 2 - (self.client.conn.FRAME_MIN_SIZE / 2)
+ size = self.frame_max_size * 2 - (self.client.conn.FRAME_MIN_SIZE // 2)
body = self.randomLongString(size)
self.echo_message(body)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org