Permalink
Browse files

Merge pull request #4 from dcolish/master

Derp'd up a commit and forgot to add files
  • Loading branch information...
schmichael committed Sep 29, 2011
2 parents fc8c3aa + 034a7f5 commit 0feebfe6280ea2e30c9378b8202f15f702e4d075
Showing with 10 additions and 2 deletions.
  1. +8 −0 tests/base.py
  2. +2 −2 tests/test_mmstats.py
View
@@ -18,3 +18,11 @@ def setUp(self):
os.remove(fn)
except OSError:
print 'Could not remove: %s' % fn
def tearDown(self):
# clean the dir after tests
for fn in glob.glob('./mmstats-test*'):
try:
os.remove(fn)
except OSError:
continue
View
@@ -53,7 +53,7 @@ class BigStats(mmstats.MmStats):
f1 = mmstats.BoolField(label='f1'*(mmstats.PAGESIZE / 2))
f2 = mmstats.BoolField(label='f2'*(mmstats.PAGESIZE / 2))
bs = BigStats()
bs = BigStats(filename='mmstats-test-resize2')
self.assertEqual(bs.size, mmstats.PAGESIZE * 3)
def test_mmap_resize2(self):
@@ -62,7 +62,7 @@ class BigStats(mmstats.MmStats):
f2 = mmstats.UIntField(label='f'+('0'*mmstats.PAGESIZE))
f3 = mmstats.UIntField(label='f'+('1'*mmstats.PAGESIZE))
bs = BigStats(filename='mmstats-test-resize1')
bs = BigStats(filename='mmstats-test-resize2')
self.assertEqual(bs.size, mmstats.PAGESIZE * 4)
self.assertEqual(bs.f1, 0)
self.assertEqual(bs.f2, 0)

0 comments on commit 0feebfe

Please sign in to comment.