summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-04-26 15:05:31 (GMT)
committerJesus Cea <jcea@jcea.es>2012-04-26 15:05:31 (GMT)
commit990eff0776a948b4a45b1c2750552c0c6864b5c7 (patch)
tree76e8958258e5d8eea71c5659119825f6547dc253 /Lib/test/test_posix.py
parent2b47f0a23ffcb0cd86dc9eacf379fbd329b895c7 (diff)
downloadcpython-990eff0776a948b4a45b1c2750552c0c6864b5c7.zip
cpython-990eff0776a948b4a45b1c2750552c0c6864b5c7.tar.gz
cpython-990eff0776a948b4a45b1c2750552c0c6864b5c7.tar.bz2
Backing out 86dc014cdd74. Not ready yet
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index c8798a9..142dddd 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -1009,26 +1009,6 @@ class PosixTester(unittest.TestCase):
posix.RTLD_GLOBAL
posix.RTLD_LOCAL
- @unittest.skipUnless('PC_MIN_HOLE_SIZE' in os.pathconf_names,
- "test needs an OS that reports file holes")
- 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 :
- fp.write(b"hello")
- fp.flush()
- size = fp.tell()
- fno = fp.fileno()
- 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)
- self.assertRaises(OSError, os.lseek, fno, size, os.SEEK_HOLE)
-
class PosixGroupsTester(unittest.TestCase):
def setUp(self):