aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-05-24 03:42:26 -0600
committerTim Harder <radhermit@gmail.com>2021-05-24 04:30:09 -0600
commit0ca35328a94aa8c1b614e913da5f899d9a8ffa1d (patch)
tree606cacea5e696bc0949a6be04f84bb08268defd8 /tests
parentIuseCheck: add initial BadDefaultUseFlags result (diff)
downloadpkgcheck-0ca35328a94aa8c1b614e913da5f899d9a8ffa1d.tar.gz
pkgcheck-0ca35328a94aa8c1b614e913da5f899d9a8ffa1d.tar.bz2
pkgcheck-0ca35328a94aa8c1b614e913da5f899d9a8ffa1d.zip
IuseCheck: flag bad IUSE defaults starting with '-'
Fixes #315.
Diffstat (limited to 'tests')
-rw-r--r--tests/checks/test_metadata.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/checks/test_metadata.py b/tests/checks/test_metadata.py
index 84702c7d..26ec2a09 100644
--- a/tests/checks/test_metadata.py
+++ b/tests/checks/test_metadata.py
@@ -322,8 +322,7 @@ class TestIuseCheck(IUSE_Options, misc.ReportTestCase):
assert 'x86' in str(r)
def test_invalid_iuse(self, check):
- chars = ['+', '-', '_', '@']
- for flag in (chars + [f'{c}flag' for c in chars]):
+ for flag in (['+', '-'] + [f'{c}flag' for c in ('_', '@')]):
r = self.assertReport(check, self.mk_pkg(f'foo {flag}'))
assert isinstance(r, metadata.InvalidUseFlags)
assert r.flags == (flag,)