diff options
author | 2016-06-07 00:00:09 -0400 | |
---|---|---|
committer | 2016-06-07 00:00:09 -0400 | |
commit | 5adba7a3d67c0770ba0153fd9b4607f59b3d2242 (patch) | |
tree | f3632fb5d1f33af5d7d2bd813095f12f2969dec7 | |
parent | ebuild/repo_objs: Licenses: add support for __len__() (diff) | |
download | pkgcore-5adba7a3d67c0770ba0153fd9b4607f59b3d2242.tar.gz pkgcore-5adba7a3d67c0770ba0153fd9b4607f59b3d2242.tar.bz2 pkgcore-5adba7a3d67c0770ba0153fd9b4607f59b3d2242.zip |
test/misc: FakePkg: pass through unknown kwargs to FakePkgBase
-rw-r--r-- | pkgcore/test/misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgcore/test/misc.py b/pkgcore/test/misc.py index 96873d92..1ef6402e 100644 --- a/pkgcore/test/misc.py +++ b/pkgcore/test/misc.py @@ -85,12 +85,12 @@ class FakeRepo(object): class FakePkg(FakePkgBase): def __init__(self, cpv, eapi="0", slot="0", subslot=None, iuse=(), use=(), - repo=FakeRepo(), restrict='', keywords=None): + repo=FakeRepo(), restrict='', keywords=None, **kwargs): if isinstance(repo, str): repo = FakeRepo(repo) elif isinstance(repo, (tuple, list)) and len(repo) < 3: repo = FakeRepo(*repo) - FakePkgBase.__init__(self, cpv, repo=factory(repo)) + FakePkgBase.__init__(self, cpv, repo=factory(repo), **kwargs) if keywords is not None: object.__setattr__(self, "keywords", set(keywords)) object.__setattr__(self, "slot", str(slot)) |