mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 03:41:12 +00:00
Mark a regex pattern as a raw string
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
7fa64043c9
commit
dd3dcf818f
@ -529,7 +529,7 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
# serves no purpose. Just check some key packages which actually use
|
||||
# gcc during the test, and libreoffice as an example for a libgcc user.
|
||||
if src.startswith('gcc-'):
|
||||
if re.match('gcc-\d$', src):
|
||||
if re.match(r'gcc-\d$', src):
|
||||
# add gcc's own tests, if it has any
|
||||
srcinfo = source_suite.sources[src]
|
||||
if 'autopkgtest' in srcinfo.testsuite:
|
||||
|
Loading…
x
Reference in New Issue
Block a user