Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9bba573

Browse files
committed
Document how test caching works
1 parent 1456f05 commit 9bba573

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,13 @@ def comparable_formats():
174174

175175
def convert(filename, cache):
176176
'''
177-
Convert the named file into a png file.
178-
Returns the name of the created file.
177+
Convert the named file into a png file. Returns the name of the
178+
created file.
179+
180+
If *cache* is True, the result of the conversion is cached in
181+
`~/.matplotlib/test_cache/`. The caching is based on a hash of the
182+
exact contents of the input file. The is no limit on the size of
183+
the cache, so it may need to be manually cleared periodically.
179184
'''
180185
base, extension = filename.rsplit('.', 1)
181186
if extension not in converter:

0 commit comments

Comments
 (0)