Commit ad4bdf06 authored by Tim Peters's avatar Tim Peters

testListCreation(): In Python 2.4, sorted() is actually a builtin.

parent 763b2e60
...@@ -328,7 +328,7 @@ class TestGuardedDictListTypes(unittest.TestCase): ...@@ -328,7 +328,7 @@ class TestGuardedDictListTypes(unittest.TestCase):
x = [3,2,1] x = [3,2,1]
self.assertEquals(l(x), [3,2,1]) self.assertEquals(l(x), [3,2,1])
if sys.version_info >= (2, 4): if sys.version_info >= (2, 4):
self.assertEquals(l.sorted(x), [1,2,3]) self.assertEquals(sorted(x), [1,2,3])
class TestRestrictedPythonApply(GuardTestCase): class TestRestrictedPythonApply(GuardTestCase):
......
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