summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_resource.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_resource.py b/Lib/test/test_resource.py
index f3416b7..0cf61cb 100644
--- a/Lib/test/test_resource.py
+++ b/Lib/test/test_resource.py
@@ -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)