mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge pull request #3129 from radarhere/docs
Minor documentation changes
This commit is contained in:
		
						commit
						2185420c6c
					
				| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user