From c38f25a876c89c2d0c7ecd7ee65823cf02cf887e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 13 May 2018 20:52:11 +1000 Subject: [PATCH 1/2] Corrected documentation syntax --- Tests/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/helper.py b/Tests/helper.py index d70b6f51d..4e11f269d 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -239,7 +239,7 @@ class PillowLeakTestCase(PillowTestCase): Gets the RUSAGE memory usage, returns in K. Encapsulates the difference between OSX and Linux rss reporting - :returns; memory usage in kilobytes + :returns: memory usage in kilobytes """ from resource import getrusage, RUSAGE_SELF From 1c88afe5c0a1c4905d5832e775da19c4eb43c14f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 13 May 2018 20:55:04 +1000 Subject: [PATCH 2/2] Changed OS X references to macOS --- Tests/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/helper.py b/Tests/helper.py index 4e11f269d..5dbdb66be 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -230,14 +230,14 @@ class PillowTestCase(unittest.TestCase): @unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS") class PillowLeakTestCase(PillowTestCase): - # requires unix/osx + # requires unix/macOS iterations = 100 # count mem_limit = 512 # k def _get_mem_usage(self): """ 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 """