Commit 45e9c314 authored by Jim Fulton's avatar Jim Fulton

Don't run certain large-file test except on linux.

parent e0c862f8
...@@ -223,6 +223,13 @@ class CacheTests(ZODB.tests.util.TestCase): ...@@ -223,6 +223,13 @@ class CacheTests(ZODB.tests.util.TestCase):
self.assertEquals(struct.unpack(">I", f.read(4))[0], self.assertEquals(struct.unpack(">I", f.read(4))[0],
ZEO.cache.max_block_size) ZEO.cache.max_block_size)
f.close() f.close()
if not sys.platform.startswith('linux'):
# On platforms without sparse files, these tests are just way
# too hard on the disk and take too long (especially in a windows
# VM).
del testVeryLargeCaches
del testConversionOfLargeFreeBlocks
def testChangingCacheSize(self): def testChangingCacheSize(self):
# start with a small cache # start with a small cache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment