diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-06-24 07:51:46 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-06-24 07:51:46 (GMT) |
commit | f841e42a98e95c863b11f2232ab6b73f11d5e190 (patch) | |
tree | d65c8b17b93f26be867f82897154f33889a91b9d /Lib/test | |
parent | 4c2f4e5c7732fe6731c0cb5c8819824f4a169b13 (diff) | |
download | cpython-f841e42a98e95c863b11f2232ab6b73f11d5e190.zip cpython-f841e42a98e95c863b11f2232ab6b73f11d5e190.tar.gz cpython-f841e42a98e95c863b11f2232ab6b73f11d5e190.tar.bz2 |
Fix whitespace
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_posix.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 0b2d07d..3c6554b 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -1015,19 +1015,19 @@ class PosixTester(unittest.TestCase): @unittest.skipIf(sys.platform == 'freebsd9', "Skip test because known kernel bug - " \ "http://lists.freebsd.org/pipermail/freebsd-amd64/2012-January/014332.html") - def test_fs_holes(self) : + def test_fs_holes(self): # Even if the filesystem doesn't report holes, # if the OS supports it the SEEK_* constants # will be defined and will have a consistent # behaviour: # os.SEEK_DATA = current position # os.SEEK_HOLE = end of file position - with open(support.TESTFN, 'r+b') as fp : + with open(support.TESTFN, 'r+b') as fp: fp.write(b"hello") fp.flush() size = fp.tell() fno = fp.fileno() - for i in range(size) : + for i in range(size): self.assertEqual(i, os.lseek(fno, i, os.SEEK_DATA)) self.assertLessEqual(size, os.lseek(fno, i, os.SEEK_HOLE)) self.assertRaises(OSError, os.lseek, fno, size, os.SEEK_DATA) |