Mercurial > hg-stable
changeset 35093:3abdd7da33bd
test-pattern: substitute common compression list
The compression list as to be matched with a glob because zstd might not be part
of the option. By using a substitution for these, we won't have to re-glob them
over and over.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 05 Nov 2017 06:41:38 +0100 |
parents | 4fb489a998c9 |
children | b4767ae63b32 |
files | tests/common-pattern.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/common-pattern.py Sun Nov 05 06:41:38 2017 +0100 @@ -0,0 +1,9 @@ +# common patterns in test at can safely be replaced +from __future__ import absolute_import + +substitutions = [ + # list of possible compressions + (br'zstd,zlib,none,bzip2', + br'$USUAL_COMPRESSIONS$' + ), +]