Add simple test for resource.getpagesize()

This commit is contained in:
Christian Heimes 2013-07-30 15:44:24 +02:00
commit 8ad91cc354
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ class ResourceTest(unittest.TestCase):
resource.setrlimit(resource.RLIMIT_CPU, BadSequence())
def test_pagesize(self):
pagesize = resource.getpagesize()
self.assertIsInstance(pagesize, int)
self.assertGreaterEqual(pagesize, 0)
def test_main(verbose=None):
support.run_unittest(ResourceTest)