mirror of https://github.com/python/cpython
Add simple test for resource.getpagesize()
This commit is contained in:
parent
65aa573082
commit
4ebc9295d1
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue