Skip to content

Commit 27f8836

Browse files
committed
Whitespace normalization.
1 parent 0e43db5 commit 27f8836

15 files changed

Lines changed: 26 additions & 35 deletions

Lib/test/test_binascii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_uu(self):
101101
self.assertEqual(binascii.a2b_uu("\xff"), "\x00"*31)
102102
self.assertRaises(binascii.Error, binascii.a2b_uu, "\xff\x00")
103103
self.assertRaises(binascii.Error, binascii.a2b_uu, "!!!!")
104-
104+
105105
self.assertRaises(binascii.Error, binascii.b2a_uu, 46*"!")
106106

107107
def test_crc32(self):

Lib/test/test_codecs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def test_main():
343343
RecodingTest,
344344
PunycodeTest,
345345
NameprepTest,
346-
CodecTest
346+
CodecTest
347347
)
348348

349349

Lib/test/test_csv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def write(self, buf):
133133
finally:
134134
fileobj.close()
135135
os.unlink(name)
136-
136+
137137
def _read_test(self, input, expect, **kwargs):
138138
reader = csv.reader(input, **kwargs)
139139
result = list(reader)
@@ -226,7 +226,7 @@ class space(csv.excel):
226226
finally:
227227
fileobj.close()
228228
os.unlink(name)
229-
229+
230230
def test_dialect_apply(self):
231231
class testA(csv.excel):
232232
delimiter = "\t"
@@ -247,7 +247,7 @@ class testC(csv.excel):
247247
finally:
248248
fileobj.close()
249249
os.unlink(name)
250-
250+
251251
fd, name = tempfile.mkstemp()
252252
fileobj = os.fdopen(fd, "w+b")
253253
try:

Lib/test/test_genexps.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,3 @@ def test_main(verbose=None):
259259

260260
if __name__ == "__main__":
261261
test_main(verbose=True)
262-
263-
264-
265-
266-
267-

Lib/test/test_heapq.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,3 @@ def test_main(verbose=None):
126126

127127
if __name__ == "__main__":
128128
test_main(verbose=True)
129-

Lib/test/test_htmlparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_attr_values(self):
204204
self._run_check("<e a=rgb(1,2,3)>", [
205205
("starttag", "e", [("a", "rgb(1,2,3)")]),
206206
])
207-
# Regression test for SF bug #921657.
207+
# Regression test for SF bug #921657.
208208
self._run_check("<a href=mailto:xyz@example.com>", [
209209
("starttag", "a", [("href", "mailto:xyz@example.com")]),
210210
])

Lib/test/test_isinstance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def test_subclass_recursion_limit(self):
252252

253253
def test_isinstance_recursion_limit(self):
254254
# make sure that issubclass raises RuntimeError before the C stack is
255-
# blown
255+
# blown
256256
self.assertRaises(RuntimeError, blowstack, isinstance, '', str)
257257

258258
def blowstack(fxn, arg, compare_to):

Lib/test/test_iterlen.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
class TestInvariantWithoutMutations(unittest.TestCase):
5353

5454
def test_invariant(self):
55-
it = self.it
56-
for i in reversed(xrange(1, n+1)):
57-
self.assertEqual(len(it), i)
58-
it.next()
59-
self.assertEqual(len(it), 0)
60-
self.assertRaises(StopIteration, it.next)
61-
self.assertEqual(len(it), 0)
55+
it = self.it
56+
for i in reversed(xrange(1, n+1)):
57+
self.assertEqual(len(it), i)
58+
it.next()
59+
self.assertEqual(len(it), 0)
60+
self.assertRaises(StopIteration, it.next)
61+
self.assertEqual(len(it), 0)
6262

6363
class TestTemporarilyImmutable(TestInvariantWithoutMutations):
6464

Lib/test/test_multibytecodec_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __init__(self, *args, **kw):
167167
parent = os.path.join(os.pardir, self.mapfilename)
168168
if not os.path.exists(parent):
169169
format = '%s not found, download from %s'
170-
raise test_support.TestSkipped(format %
170+
raise test_support.TestSkipped(format %
171171
(self.mapfilename, self.mapfileurl))
172172
else:
173173
self.mapfilename = parent

Lib/test/test_profile.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ def __getattr__(self, name):
8686

8787

8888
def test_2():
89-
d = globals().copy()
90-
def testfunc():
91-
global x
92-
x = 1
93-
d['testfunc'] = testfunc
94-
profile.runctx("testfunc()", d, d, TESTFN)
95-
vereq (x, 1)
96-
os.unlink (TESTFN)
89+
d = globals().copy()
90+
def testfunc():
91+
global x
92+
x = 1
93+
d['testfunc'] = testfunc
94+
profile.runctx("testfunc()", d, d, TESTFN)
95+
vereq (x, 1)
96+
os.unlink (TESTFN)
9797

9898
if __name__ == "__main__":
9999
test_main()

0 commit comments

Comments
 (0)