Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f841e42

Browse files
committed
Fix whitespace
1 parent 4c2f4e5 commit f841e42

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_posix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,19 +1015,19 @@ def test_rtld_constants(self):
10151015
@unittest.skipIf(sys.platform == 'freebsd9',
10161016
"Skip test because known kernel bug - " \
10171017
"http://lists.freebsd.org/pipermail/freebsd-amd64/2012-January/014332.html")
1018-
def test_fs_holes(self) :
1018+
def test_fs_holes(self):
10191019
# Even if the filesystem doesn't report holes,
10201020
# if the OS supports it the SEEK_* constants
10211021
# will be defined and will have a consistent
10221022
# behaviour:
10231023
# os.SEEK_DATA = current position
10241024
# os.SEEK_HOLE = end of file position
1025-
with open(support.TESTFN, 'r+b') as fp :
1025+
with open(support.TESTFN, 'r+b') as fp:
10261026
fp.write(b"hello")
10271027
fp.flush()
10281028
size = fp.tell()
10291029
fno = fp.fileno()
1030-
for i in range(size) :
1030+
for i in range(size):
10311031
self.assertEqual(i, os.lseek(fno, i, os.SEEK_DATA))
10321032
self.assertLessEqual(size, os.lseek(fno, i, os.SEEK_HOLE))
10331033
self.assertRaises(OSError, os.lseek, fno, size, os.SEEK_DATA)

0 commit comments

Comments
 (0)