diff --git a/debian/changelog b/debian/changelog index 98f4062199da6388bfad39f1ef121331f098f181..fee0fb808ed45a2af12718630da55dc3045f716f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ python-limits (2.8.0-1) UNRELEASED; urgency=medium * Refresh patches. * Build-Depend on python3-typing-extensions. * Echo the python version being tested in python3-tests. + * Flush memcached storage between Python versions in python3-tests. + (Closes: #1025107) -- Stefano Rivera <stefanor@debian.org> Sun, 25 Dec 2022 10:59:17 -0400 diff --git a/debian/tests/memcached_storage.py b/debian/tests/memcached_storage.py index 62acf77c23306b1fa6af3c64edf5c4d7749de61a..26bcefc223c97c81cac50e96edf826e76ad8a911 100644 --- a/debian/tests/memcached_storage.py +++ b/debian/tests/memcached_storage.py @@ -4,6 +4,8 @@ from limits import storage, RateLimitItemPerSecond from limits import strategies memcached_storage = storage.MemcachedStorage("memcached://localhost:22122") +# Flush memcached in case we are testing multiple Python versions in a row +memcached_storage.storage.flush_all() fixed_window = strategies.FixedWindowRateLimiter(memcached_storage)