summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/PexpectTestCase.py3
-rwxr-xr-xtools/testall.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/PexpectTestCase.py b/tests/PexpectTestCase.py
index cfdcd58..a9c056f 100644
--- a/tests/PexpectTestCase.py
+++ b/tests/PexpectTestCase.py
@@ -30,7 +30,8 @@ class PexpectTestCase(unittest.TestCase):
self.original_path = os.getcwd()
newpath = os.path.join (os.environ['PROJECT_PEXPECT_HOME'], 'tests')
os.chdir (newpath)
- print('\n', self.id(), end='')
+ print('\n', self.id(), end=' ')
+ sys.stdout.flush()
unittest.TestCase.setUp(self)
def tearDown(self):
os.chdir (self.original_path)
diff --git a/tools/testall.py b/tools/testall.py
index a62b53a..a7ff9eb 100755
--- a/tools/testall.py
+++ b/tools/testall.py
@@ -60,7 +60,7 @@ def find_modules_and_add_paths (root_path):
for module_file in import_list:
path, module = os.path.split(module_file)
module_list.append (module)
- print('Adding:', module_file)
+ print('Adding:', os.path.relpath(module_file))
if not path in sys.path:
sys.path.append (path)
if not os.path.dirname(path) in sys.path: