Skip to content

Commit 45d2897

Browse files
committed
relax regex used for PyPI URLs for easybuild packages in test_pypi_source_urls
1 parent 71e2e01 commit 45d2897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/framework/filetools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,8 +1292,8 @@ def test_pypi_source_urls(self):
12921292
eb340_url += 'easybuild-3.4.0.tar.gz#md5=267a056a77a8f77fccfbf56354364045'
12931293
self.assertTrue(eb340_url, res)
12941294
pattern = '^https://pypi.python.org/packages/[a-f0-9]{2}/[a-f0-9]{2}/[a-f0-9]{60}/'
1295-
pattern_md5 = pattern + 'easybuild-[0-9rc.]+.tar.gz#md5=[a-f0-9]{32}$'
1296-
pattern_sha256 = pattern + 'easybuild-[0-9rc.]+.tar.gz#sha256=[a-f0-9]{64}$'
1295+
pattern_md5 = pattern + 'easybuild-[0-9a-z.]+.tar.gz#md5=[a-f0-9]{32}$'
1296+
pattern_sha256 = pattern + 'easybuild-[0-9a-z.]+.tar.gz#sha256=[a-f0-9]{64}$'
12971297
regex_md5 = re.compile(pattern_md5)
12981298
regex_sha256 = re.compile(pattern_sha256)
12991299
for url in res:

0 commit comments

Comments
 (0)