Add simple test for resource.getpagesize()

This commit is contained in:
Christian Heimes 2013-07-30 15:44:13 +02:00
parent 65aa573082
commit 4ebc9295d1
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)