[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Fix close_circuit test



commit 3b6ac7bd10c38b9ef52d73bdbf134eced065e291
Author: Sean Robinson <seankrobinson@xxxxxxxxx>
Date:   Sun Nov 25 07:33:05 2012 -0700

    Fix close_circuit test
    
    Signed-off-by: Sean Robinson <seankrobinson@xxxxxxxxx>
---
 test/integ/control/controller.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/integ/control/controller.py b/test/integ/control/controller.py
index 58208b5..6a000c2 100644
--- a/test/integ/control/controller.py
+++ b/test/integ/control/controller.py
@@ -420,13 +420,13 @@ class TestController(unittest.TestCase):
       circ_id = controller.new_circuit()
       controller.close_circuit(circ_id)
       circuit_output = controller.get_info("circuit-status")
-      circ = filter(re.compile("^%i " % circ_id).match, circuit_output.splitlines())[0]
+      circ = [x.split()[0] for x in circuit_output.splitlines()]
       self.assertFalse(circ_id in circ)
 
       circ_id = controller.new_circuit()
       controller.close_circuit(circ_id, "IfUnused")
       circuit_output = controller.get_info("circuit-status")
-      circ = filter(re.compile("^%i " % circ_id).match, circuit_output.splitlines())[0]
+      circ = [x.split()[0] for x in circuit_output.splitlines()]
       self.assertFalse(circ_id in circ)
 
       circ_id = controller.new_circuit()



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits