From 30670e079498f131261659e10b22bad07bea24de Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Sat, 8 Feb 2014 12:06:56 -0800 Subject: [PATCH] Fix syntax in test_load_balancer_basics._check_load_balancing The set == {} syntax is invalid in python 2.6. Note that even though the test is currently being skipped, it's interpreted before the skip is executed so this fails regardless of the skip decorator. Closes-Bug: #1277951 Change-Id: Ic64622604a717db33555784cfe265e6af3e6dea7 --- tempest/scenario/test_load_balancer_basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempest/scenario/test_load_balancer_basic.py b/tempest/scenario/test_load_balancer_basic.py index ff4bcffc68..68f6e6284c 100644 --- a/tempest/scenario/test_load_balancer_basic.py +++ b/tempest/scenario/test_load_balancer_basic.py @@ -214,7 +214,7 @@ class TestLoadBalancerBasic(manager.NetworkScenarioTest): resp.append( urllib.urlopen( "http://{0}/".format(floating_ip_vip)).read()) - self.assertEqual({"server1\n", "server2\n"}, set(resp)) + self.assertEqual(set(["server1\n", "server2\n"]), set(resp)) self.assertEqual(5, resp.count("server1\n")) self.assertEqual(5, resp.count("server2\n"))