Commit 9a20f2ec authored by Jérome Perrin's avatar Jérome Perrin

tests: fix failure after Git upgrade from 2.35.1 to 2.37.0

git fetch --all no longer include "Fetching $REMOTE" when there's only
one remote to fetch from
parent 81a4a5c0
Pipeline #22586 passed with stage
in 0 seconds
......@@ -637,13 +637,14 @@ def md5sum(m):
MD5SUM.append(x)
return '<MD5SUM:%s>' % i
renormalizing_patters = [
renormalizing_patterns = [
zc.buildout.testing.normalize_path,
zc.buildout.testing.not_found,
(re.compile(
'.*CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. '
'Support for it is now deprecated in cryptography, and will be removed in the next release.\n.*'
), ''),
(re.compile('Fetching origin\n'), ''),
(re.compile('[0-9a-f]{32}'), md5sum),
]
......@@ -657,7 +658,7 @@ def test_suite():
optionflags=optionflags,
checker=renormalizing.RENormalizing([
(re.compile(r'http://localhost:\d+'), 'http://test.server'),
] + renormalizing_patters),
] + renormalizing_patterns),
globs={'MD5SUM': MD5SUM},
),
unittest.makeSuite(DownloadTests),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment