Change in vdsm[master]: tests: fix AttributeError: 'module' object has no attribute ...

ibarkan at redhat.com ibarkan at redhat.com
Sun Oct 11 11:19:10 UTC 2015


Ido Barkan has posted comments on this change.

Change subject: tests: fix AttributeError: 'module' object has no attribute 'ifcfg'
......................................................................


Patch Set 8: Code-Review+1

this happens because python does not expose modules as parts of the package. simply put, 'from package import module' is supported while 'import package; package.module' isn't.
this is because a package is represented by the module named __init__.py inside the package directory and this module hsd no attributes that are magically added to him (not even inner modules).

-- 
To view, visit https://gerrit.ovirt.org/31108
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ibe715c9f4c0f6b2b832f897467ba551416c52432
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Antoni Segura Puimedon <toni+ovirt at midokura.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Ido Barkan <ibarkan at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondřej Svoboda <osvoboda at redhat.com>
Gerrit-Reviewer: Petr Horáček <phoracek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: No


More information about the vdsm-patches mailing list