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 20811aff2ac6876caef1c4b333f9373276c0ff22
Author: Jiri DanÄ›k <[email protected]>
AuthorDate: Sat Apr 8 18:39:54 2023 +0200

    QPID-8631: use the `next()` builtin to progress iterators
    
    ```
    python-modernize -wnf libmodernize.fixes.fix_next
    ```
---
 qpid_tests/broker_0_10/priority.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/qpid_tests/broker_0_10/priority.py 
b/qpid_tests/broker_0_10/priority.py
index c49ef65..ccce6cc 100644
--- a/qpid_tests/broker_0_10/priority.py
+++ b/qpid_tests/broker_0_10/priority.py
@@ -136,23 +136,23 @@ class PriorityTests (Base):
     def test_ring_queue_1(self):
         priorities = 
[4,5,3,6,9,9,2,9,2,9,9,1,9,9,9,3,3,3,9,9,3,9,3,9,9,9,9,9,9,2,3]
         seq = content("msg")
-        self.ring_queue_check([Message(content=seq.next(), priority = p) for p 
in priorities])
+        self.ring_queue_check([Message(content=next(seq), priority = p) for p 
in priorities])
 
     def test_ring_queue_2(self):
         priorities = 
[9,0,2,3,6,3,4,2,9,2,9,9,1,9,4,7,1,1,3,9,7,3,9,3,9,1,5,1,9,7,2,3,0,9]
         seq = content("msg")
-        self.ring_queue_check([Message(content=seq.next(), priority = p) for p 
in priorities])
+        self.ring_queue_check([Message(content=next(seq), priority = p) for p 
in priorities])
 
     def test_ring_queue_3(self):
         #test case given for QPID-3866
         priorities = [8,9,5,1,2,2,3,4,9,7,8,9,9,2]
         seq = content("msg")
-        self.ring_queue_check([Message(content=seq.next(), priority = p) for p 
in priorities], 5)
+        self.ring_queue_check([Message(content=next(seq), priority = p) for p 
in priorities], 5)
 
     def test_ring_queue_4(self):
         priorities = 
[9,0,2,3,6,3,4,2,9,2,9,3,1,9,4,7,1,1,3,2,7,3,9,3,6,1,5,1,9,7,2,3,0,2]
         seq = content("msg")
-        self.ring_queue_check([Message(content=seq.next(), priority = p) for p 
in priorities])
+        self.ring_queue_check([Message(content=next(seq), priority = p) for p 
in priorities])
 
     def test_requeue(self):
         priorities = 
[4,5,3,6,9,9,2,9,2,9,9,1,9,9,9,3,3,3,9,9,3,9,3,9,9,9,9,9,9,2,3]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to