Kaydet (Commit) 292ee5dc authored tarafından Brett Cannon's avatar Brett Cannon

Fix test.test_crypt.test_methods() to pass on OS X.

üst b94767ff
......@@ -25,7 +25,10 @@ class CryptTestCase(unittest.TestCase):
self.assertEqual(len(pw), method.total_size)
def test_methods(self):
self.assertTrue(len(crypt.methods()) > 1)
# Gurantee that METHOD_CRYPT is the last method in crypt.methods().
methods = crypt.methods()
self.assertTrue(len(methods) >= 1)
self.assertEqual(crypt.METHOD_CRYPT, methods[-1])
def test_main():
support.run_unittest(CryptTestCase)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment