Merge pull request #3129 from radarhere/docs

Minor documentation changes
This commit is contained in:
Hugo 2018-05-13 16:15:10 +03:00 committed by GitHub
commit 2185420c6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,16 +230,16 @@ class PillowTestCase(unittest.TestCase):
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS") @unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
class PillowLeakTestCase(PillowTestCase): class PillowLeakTestCase(PillowTestCase):
# requires unix/osx # requires unix/macOS
iterations = 100 # count iterations = 100 # count
mem_limit = 512 # k mem_limit = 512 # k
def _get_mem_usage(self): def _get_mem_usage(self):
""" """
Gets the RUSAGE memory usage, returns in K. Encapsulates the difference Gets the RUSAGE memory usage, returns in K. Encapsulates the difference
between OSX and Linux rss reporting between macOS and Linux rss reporting
:returns; memory usage in kilobytes :returns: memory usage in kilobytes
""" """
from resource import getrusage, RUSAGE_SELF from resource import getrusage, RUSAGE_SELF