diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-30 13:44:13 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-30 13:44:13 (GMT) |
commit | 4ebc9295d15c52295ce903d99ccf24142c22b29d (patch) | |
tree | 66476806dd974555199ef91a3a940e65c0aaa51e | |
parent | 65aa573082b64023c8bd0f33c655c7f02830cf97 (diff) | |
download | cpython-4ebc9295d15c52295ce903d99ccf24142c22b29d.zip cpython-4ebc9295d15c52295ce903d99ccf24142c22b29d.tar.gz cpython-4ebc9295d15c52295ce903d99ccf24142c22b29d.tar.bz2 |
Add simple test for resource.getpagesize()
-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 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) |