Permalink
Browse files

virttest/kvm_qtree_unittest.py: Fix unnecessary import

Instead of making such a mess, use a relative import
and let's call it a day.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
  • Loading branch information...
1 parent 003344e commit aab2d9e26870b5ff698bbf24ded9ffc2805dfaba @lmr lmr committed Sep 30, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 virttest/kvm_qtree_unittest.py
@@ -8,14 +8,9 @@
__author__ = """Lukas Doktor (ldoktor@redhat.com)"""
import unittest
-import sys
-import os
import common
from autotest.client.shared.test_utils import mock
-test_dir = os.path.abspath(os.path.dirname(os.path.dirname(sys.modules[__name__].__file__)))
-print test_dir
-sys.path.append(test_dir)
-from virttest import kvm_qtree
+import kvm_qtree
OFFSET_PER_LEVEL = kvm_qtree.OFFSET_PER_LEVEL

0 comments on commit aab2d9e

Please sign in to comment.