diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-03-30 12:59:11 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-03-30 12:59:11 (GMT) |
commit | 4ef3a23a35a391602202dce10376be9e43588fa6 (patch) | |
tree | c7310a78fc2ce187a6d79d84fa1f4d5e8afcd8f3 /Lib/test | |
parent | ecdc0a9f4609e3be57e5f8a54dac2ea8e9607aed (diff) | |
download | cpython-4ef3a23a35a391602202dce10376be9e43588fa6.zip cpython-4ef3a23a35a391602202dce10376be9e43588fa6.tar.gz cpython-4ef3a23a35a391602202dce10376be9e43588fa6.tar.bz2 |
whitespace normalisation
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/leakers/test_generator_cycle.py | 1 | ||||
-rw-r--r-- | Lib/test/test_augassign.py | 10 | ||||
-rw-r--r-- | Lib/test/test_coercion.py | 8 | ||||
-rw-r--r-- | Lib/test/test_decimal.py | 2 | ||||
-rw-r--r-- | Lib/test/test_index.py | 22 |
5 files changed, 21 insertions, 22 deletions
diff --git a/Lib/test/leakers/test_generator_cycle.py b/Lib/test/leakers/test_generator_cycle.py index d2fa72c..b0aba43 100644 --- a/Lib/test/leakers/test_generator_cycle.py +++ b/Lib/test/leakers/test_generator_cycle.py @@ -8,4 +8,3 @@ def leak(): while True: yield g g = gen() - diff --git a/Lib/test/test_augassign.py b/Lib/test/test_augassign.py index e97ef46..dbf71bc 100644 --- a/Lib/test/test_augassign.py +++ b/Lib/test/test_augassign.py @@ -64,7 +64,7 @@ class AugAssignTest(unittest.TestCase): x *= 2 self.assertEquals(x, [1, 2, 3, 4, 1, 2, 3, 4]) - + x = [1, 2, 3] y = x x[1:2] *= 2 @@ -82,7 +82,7 @@ class AugAssignTest(unittest.TestCase): return self.val + val def __add__(self, val): return aug_test(self.val + val) - + class aug_test2(aug_test): def __iadd__(self, val): self.val = self.val + val @@ -91,7 +91,7 @@ class AugAssignTest(unittest.TestCase): class aug_test3(aug_test): def __iadd__(self, val): return aug_test3(self.val + val) - + x = aug_test(1) y = x x += 10 @@ -103,7 +103,7 @@ class AugAssignTest(unittest.TestCase): x = aug_test2(2) y = x x += 10 - + self.assert_(y is x) self.assertEquals(x.val, 12) @@ -319,7 +319,7 @@ __lshift__ called __rlshift__ called __ilshift__ called '''.splitlines()) - + def test_main(): run_unittest(AugAssignTest) diff --git a/Lib/test/test_coercion.py b/Lib/test/test_coercion.py index fcd2105..4356817 100644 --- a/Lib/test/test_coercion.py +++ b/Lib/test/test_coercion.py @@ -181,7 +181,7 @@ infix_results = { (6,8): ('e', (6,0)), # MethodNumber(2) - (7,0): ('e', (0,0)), + (7,0): ('e', (0,0)), (7,1): ('e', (0,1)), (7,2): ('e', (0,2)), (7,3): ('e', (0,3)), @@ -192,7 +192,7 @@ infix_results = { (7,8): ('e', (0,8)), # CoerceNumber(2) - (8,0): ('e', (0,0)), + (8,0): ('e', (0,0)), (8,1): ('e', (0,1)), (8,2): ('e', (0,2)), (8,3): ('e', (0,3)), @@ -223,8 +223,8 @@ def process_infix_results(): res[i][6] = res[i][6][1] infix_results[key] = res - - + + process_infix_results() # now infix_results has two lists of results for every pairing. diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 29b28ef..6133b2e 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -517,7 +517,7 @@ class DecimalImplicitConstructionTest(unittest.TestCase): else: # testing with -Qnew, so add __truediv__ oplist.append(('/', '__truediv__', '__rtruediv__')) - + for sym, lop, rop in oplist: setattr(E, lop, lambda self, other: 'str' + lop + str(other)) setattr(E, rop, lambda self, other: str(other) + rop + 'str') diff --git a/Lib/test/test_index.py b/Lib/test/test_index.py index c7150cd..770d1cd 100644 --- a/Lib/test/test_index.py +++ b/Lib/test/test_index.py @@ -17,7 +17,7 @@ class ListTestCase(unittest.TestCase): self.n = newstyle() self.o2 = oldstyle() self.n2 = newstyle() - + def test_basic(self): self.o.ind = -2 self.n.ind = 2 @@ -25,7 +25,7 @@ class ListTestCase(unittest.TestCase): assert(self.seq[self.o] == 40) assert(operator.index(self.o) == -2) assert(operator.index(self.n) == 2) - + def test_error(self): self.o.ind = 'dumb' self.n.ind = 'bad' @@ -50,8 +50,8 @@ class TupleTestCase(unittest.TestCase): self.n = newstyle() self.o2 = oldstyle() self.n2 = newstyle() - - + + def test_basic(self): self.o.ind = -2 self.n.ind = 2 @@ -59,7 +59,7 @@ class TupleTestCase(unittest.TestCase): assert(self.seq[self.o] == 40) assert(operator.index(self.o) == -2) assert(operator.index(self.n) == 2) - + def test_error(self): self.o.ind = 'dumb' self.n.ind = 'bad' @@ -84,8 +84,8 @@ class StringTestCase(unittest.TestCase): self.n = newstyle() self.o2 = oldstyle() self.n2 = newstyle() - - + + def test_basic(self): self.o.ind = -2 self.n.ind = 2 @@ -93,7 +93,7 @@ class StringTestCase(unittest.TestCase): assert(self.seq[self.o] == self.seq[-2]) assert(operator.index(self.o) == -2) assert(operator.index(self.n) == 2) - + def test_error(self): self.o.ind = 'dumb' self.n.ind = 'bad' @@ -119,8 +119,8 @@ class UnicodeTestCase(unittest.TestCase): self.n = newstyle() self.o2 = oldstyle() self.n2 = newstyle() - - + + def test_basic(self): self.o.ind = -2 self.n.ind = 2 @@ -128,7 +128,7 @@ class UnicodeTestCase(unittest.TestCase): assert(self.seq[self.o] == self.seq[-2]) assert(operator.index(self.o) == -2) assert(operator.index(self.n) == 2) - + def test_error(self): self.o.ind = 'dumb' self.n.ind = 'bad' |