Commit 8ad91cc3 authored by Christian Heimes's avatar Christian Heimes

Add simple test for resource.getpagesize()

parents d49a371e 4ebc9295
......@@ -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)
......
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