summaryrefslogtreecommitdiff
path: root/Lib/test/test_resource.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-30 15:44:24 +0200
committerChristian Heimes <christian@cheimes.de>2013-07-30 15:44:24 +0200
commit8ad91cc35403199bab0e25a7266c7bb1125e94d5 (patch)
treec560c640ea9e301656fb4e706a021eb9f58496e1 /Lib/test/test_resource.py
parentd49a371e9172f41c77d3ac4bd481d610bdba0fc4 (diff)
parent4ebc9295d15c52295ce903d99ccf24142c22b29d (diff)
downloadcpython-git-8ad91cc35403199bab0e25a7266c7bb1125e94d5.tar.gz
Add simple test for resource.getpagesize()
Diffstat (limited to 'Lib/test/test_resource.py')
-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 bb3ff25a6a..1bf2a5a6ce 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)