diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-30 15:44:24 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-30 15:44:24 +0200 |
commit | 8ad91cc35403199bab0e25a7266c7bb1125e94d5 (patch) | |
tree | c560c640ea9e301656fb4e706a021eb9f58496e1 /Lib/test/test_resource.py | |
parent | d49a371e9172f41c77d3ac4bd481d610bdba0fc4 (diff) | |
parent | 4ebc9295d15c52295ce903d99ccf24142c22b29d (diff) | |
download | cpython-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.py | 5 |
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) |