From 06a76a36724a4b7a61b393d86366cdf133b5d7a2 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 30 Dec 2020 00:46:20 +0100 Subject: [PATCH] Fix incorrect statement regarding test images cache size. --- lib/matplotlib/testing/compare.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/testing/compare.py b/lib/matplotlib/testing/compare.py index 9c2181c1cd8d..fb2e55880cde 100644 --- a/lib/matplotlib/testing/compare.py +++ b/lib/matplotlib/testing/compare.py @@ -276,8 +276,9 @@ def convert(filename, cache): If *cache* is True, the result of the conversion is cached in `matplotlib.get_cachedir() + '/test_cache/'`. The caching is based on a - hash of the exact contents of the input file. There is no limit on the - size of the cache, so it may need to be manually cleared periodically. + hash of the exact contents of the input file. Old cache entries are + automatically deleted as needed to keep the size of the cache capped to + twice the size of all baseline images. """ path = Path(filename) if not path.exists():