summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-01-18 21:03:23 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-01-18 21:03:23 (GMT)
commit130189271544cd1e2cd5687ead7bb31ff48a8e0a (patch)
tree261212d3f579026275e5a66f18c803dde490980f /Lib
parent8279170ed2ddffad6f38e3d8ebc29d14cf5d8ae3 (diff)
downloadcpython-130189271544cd1e2cd5687ead7bb31ff48a8e0a.zip
cpython-130189271544cd1e2cd5687ead7bb31ff48a8e0a.tar.gz
cpython-130189271544cd1e2cd5687ead7bb31ff48a8e0a.tar.bz2
For whatever reason, these files had \r\r\n line endings on Windows,
meaning they must have been checked in to CVS from a Linuxish box with Windowish \r\n line endings to begin with.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/list_tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py
index 84327a6..d20d198 100644
--- a/Lib/test/list_tests.py
+++ b/Lib/test/list_tests.py
@@ -232,7 +232,7 @@ class CommonTest(seq_tests.CommonTest):
self.assertEqual(a, [])
self.assertRaises(ValueError, a.remove, 0)
-
+
self.assertRaises(TypeError, a.remove)
class BadExc(Exception):
@@ -254,7 +254,7 @@ class CommonTest(seq_tests.CommonTest):
self.assertEqual(a.count(3), 0)
self.assertRaises(TypeError, a.count)
-
+
class BadExc(Exception):
pass
@@ -318,18 +318,18 @@ class CommonTest(seq_tests.CommonTest):
self.assertEqual(u, [2, 1, 0, -1, -2])
u.reverse()
self.assertEqual(u, u2)
-
+
self.assertRaises(TypeError, u.reverse, 42)
def test_sort(self):
u = self.type2test([1, 0])
u.sort()
self.assertEqual(u, [0, 1])
-
+
u = self.type2test([2,1,0,-1,-2])
u.sort()
self.assertEqual(u, self.type2test([-2,-1,0,1,2]))
-
+
self.assertRaises(TypeError, u.sort, 42, 42)
def revcmp(a, b):
@@ -342,14 +342,14 @@ class CommonTest(seq_tests.CommonTest):
return cmp(x%3, y%7)
z = self.type2test(range(12))
z.sort(myComparison)
-
+
self.assertRaises(TypeError, z.sort, 2)
-
+
def selfmodifyingComparison(x,y):
z.append(1)
return cmp(x, y)
self.assertRaises(ValueError, z.sort, selfmodifyingComparison)
-
+
self.assertRaises(TypeError, z.sort, lambda x, y: 's')
self.assertRaises(TypeError, z.sort, 42, 42, 42, 42)