about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/etc/check-sanitycheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/check-sanitycheck.py b/src/etc/check-sanitycheck.py
index 0d9c430ec3a..fc8ed7b383e 100644
--- a/src/etc/check-sanitycheck.py
+++ b/src/etc/check-sanitycheck.py
@@ -13,7 +13,6 @@
 import os
 import sys
 import functools
-import resource
 
 STATUS = 0
 
@@ -37,6 +36,7 @@ def only_on(platforms):
 
 @only_on(('linux', 'darwin', 'freebsd', 'openbsd'))
 def check_rlimit_core():
+    import resource
     soft, hard = resource.getrlimit(resource.RLIMIT_CORE)
     if soft > 0:
         error_unless_permitted('ALLOW_NONZERO_RLIMIT_CORE', """\