diff options
author | Chris Lumens <clumens@redhat.com> | 2010-11-11 10:59:18 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2010-11-11 12:00:29 -0500 |
commit | 4c9af74fb6cac8d1650f5ad1d48a6190a52d9c64 (patch) | |
tree | 865948dce2c452ecd25a010a3173dc5033edf198 /tests | |
parent | edf8c655921aae5b2482b43981e80381e8f2ad9c (diff) | |
download | anaconda-4c9af74fb6cac8d1650f5ad1d48a6190a52d9c64.tar.gz anaconda-4c9af74fb6cac8d1650f5ad1d48a6190a52d9c64.tar.xz anaconda-4c9af74fb6cac8d1650f5ad1d48a6190a52d9c64.zip |
Import as "pyanaconda.anaconda_log", not "anaconda_log".
Doing the latter means both modules end up in the module list, which means
you've got two different instances of the module and therefore two different
instances of the module-level global logger. One will be initialized and one
will not.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage_test/devicelibs_test/baseclass.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage_test/devicelibs_test/baseclass.py b/tests/storage_test/devicelibs_test/baseclass.py index 65c74e8b7..06adef989 100644 --- a/tests/storage_test/devicelibs_test/baseclass.py +++ b/tests/storage_test/devicelibs_test/baseclass.py @@ -63,8 +63,8 @@ class DevicelibsTestCase(unittest.TestCase): _LOOP_DEVICES = ["/tmp/test-virtdev0", "/tmp/test-virtdev1"] def __init__(self, *args, **kwargs): - import anaconda_log - anaconda_log.init() + import pyanaconda.anaconda_log + pyanaconda.anaconda_log.init() unittest.TestCase.__init__(self, *args, **kwargs) self._loopMap = {} |