mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-14 12:01:30 +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
|
# serves no purpose. Just check some key packages which actually use
|
||||||
# gcc during the test, and libreoffice as an example for a libgcc user.
|
# gcc during the test, and libreoffice as an example for a libgcc user.
|
||||||
if src.startswith('gcc-'):
|
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
|
# add gcc's own tests, if it has any
|
||||||
srcinfo = source_suite.sources[src]
|
srcinfo = source_suite.sources[src]
|
||||||
if 'autopkgtest' in srcinfo.testsuite:
|
if 'autopkgtest' in srcinfo.testsuite:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user