Drop remaining skip check for Python < 3
... because Python 2.x is no longer supported. Change-Id: I3167a539b3e26ceb35976fbd7a2356ba59d4a5e4
This commit is contained in:
@@ -2492,9 +2492,6 @@ class TestRingBuilder(unittest.TestCase):
|
|||||||
(0, 0, '127.0.0.1', 3): [0, 256, 0, 0],
|
(0, 0, '127.0.0.1', 3): [0, 256, 0, 0],
|
||||||
})
|
})
|
||||||
|
|
||||||
@unittest.skipIf(sys.version_info < (3,),
|
|
||||||
"Seed-specific tests don't work well between python "
|
|
||||||
"versions. This test is now PY3 only")
|
|
||||||
def test_undispersable_zone_converge_on_balance(self):
|
def test_undispersable_zone_converge_on_balance(self):
|
||||||
rb = ring.RingBuilder(8, 6, 0)
|
rb = ring.RingBuilder(8, 6, 0)
|
||||||
dev_id = 0
|
dev_id = 0
|
||||||
@@ -2550,9 +2547,6 @@ class TestRingBuilder(unittest.TestCase):
|
|||||||
self.assertEqual(rb.get_balance(), 14.453125)
|
self.assertEqual(rb.get_balance(), 14.453125)
|
||||||
self.assertEqual(rb.dispersion, 16.6015625)
|
self.assertEqual(rb.dispersion, 16.6015625)
|
||||||
|
|
||||||
@unittest.skipIf(sys.version_info < (3,),
|
|
||||||
"Seed-specific tests don't work well between python "
|
|
||||||
"versions. This test is now PY3 only")
|
|
||||||
def test_undispersable_server_converge_on_balance(self):
|
def test_undispersable_server_converge_on_balance(self):
|
||||||
rb = ring.RingBuilder(8, 6, 0)
|
rb = ring.RingBuilder(8, 6, 0)
|
||||||
dev_id = 0
|
dev_id = 0
|
||||||
|
@@ -531,9 +531,6 @@ class TestRing(TestRingBase):
|
|||||||
self.ring.devs.append(new_dev)
|
self.ring.devs.append(new_dev)
|
||||||
self.ring._rebuild_tier_data()
|
self.ring._rebuild_tier_data()
|
||||||
|
|
||||||
@unittest.skipIf(sys.version_info < (3,),
|
|
||||||
"Seed-specific tests don't work well between python "
|
|
||||||
"versions. This test is now PY3 only")
|
|
||||||
def test_get_more_nodes(self):
|
def test_get_more_nodes(self):
|
||||||
# Yes, these tests are deliberately very fragile. We want to make sure
|
# Yes, these tests are deliberately very fragile. We want to make sure
|
||||||
# that if someone changes the results the ring produces, they know it.
|
# that if someone changes the results the ring produces, they know it.
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
@@ -664,9 +663,6 @@ class TestUtils(unittest.TestCase):
|
|||||||
}
|
}
|
||||||
self.assertEqual(device, expected)
|
self.assertEqual(device, expected)
|
||||||
|
|
||||||
@unittest.skipIf(sys.version_info < (3,),
|
|
||||||
"Seed-specific tests don't work well between python "
|
|
||||||
"versions. This test is now PY3 only")
|
|
||||||
def test_dispersion_report(self):
|
def test_dispersion_report(self):
|
||||||
rb = ring.RingBuilder(8, 3, 0)
|
rb = ring.RingBuilder(8, 3, 0)
|
||||||
rb.add_dev({'id': 0, 'region': 1, 'zone': 0, 'weight': 100,
|
rb.add_dev({'id': 0, 'region': 1, 'zone': 0, 'weight': 100,
|
||||||
|
Reference in New Issue
Block a user