Author: Ihar Hrachyshka <ihrac...@redhat.com>
Date: Tue Aug 30 10:42:41 2016 +0000
Forbid importing neutron.tests.* from outside tests subtree
neutron-sanity-check tool was importing neutron.tests.base module, which
may be not present on some systems (f.e. RDO splits neutron/tests/
subtree in a separate python-neutron-tests package). It made the tool
not usable in some setups.
This is not the first time when we by mistake import from
neutron.tests.* and break distributions. It's time to stop it by
proactively forbidding that pattern via a new hacking check.
Some functions were moved from neutron.tests.base to
neutron.common.utils to fulfill the need requirement. They were moved
using debtcollector, no current consumers should be affected.
** Changed in: neutron
Status: In Progress => Fix Released
** Bug watch added: Red Hat Bugzilla #1374282
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
Production code must not import from neutron.tests.*
Status in neutron:
sanity-check tool for one imports some util functions from
neutron.tests.base. This makes distributions that split out tests
subtree in a separate package somewhat broken.
It's my belief we should really enforce the requirement via hacking
check, otherwise we will hit similar issues in the future.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : email@example.com
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp