Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d88c7bb437f1a231687f3169871ec55f > files > 3

bootchart-0.14.0-1.3.git20110630.4.mga3.src.rpm

From 9539ad4a591a8dac88b7ffe5a60280bced769ec5 Mon Sep 17 00:00:00 2001
From: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Date: Sat, 19 Mar 2011 11:03:43 +0100
Subject: [PATCH] Fix tests import path so we can call them from source root
 dir

---
 pybootchartgui/tests/parser_test.py       |    3 ++-
 pybootchartgui/tests/process_tree_test.py |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/pybootchartgui/tests/parser_test.py b/pybootchartgui/tests/parser_test.py
index 7f17779..beeb547 100644
--- a/pybootchartgui/tests/parser_test.py
+++ b/pybootchartgui/tests/parser_test.py
@@ -4,7 +4,8 @@ import unittest
 
 sys.path.insert(0, os.getcwd())
 
-import parsing, main
+import pybootchartgui.parsing as parsing
+import pybootchartgui.main as main
 
 debug = False
 
diff --git a/pybootchartgui/tests/process_tree_test.py b/pybootchartgui/tests/process_tree_test.py
index 971e125..e1e7553 100644
--- a/pybootchartgui/tests/process_tree_test.py
+++ b/pybootchartgui/tests/process_tree_test.py
@@ -4,8 +4,8 @@ import unittest
 
 sys.path.insert(0, os.getcwd())
 
-import parsing
-import process_tree
+import pybootchartgui.parsing as parsing
+import pybootchartgui.process_tree as process_tree
 
 class TestProcessTree(unittest.TestCase):