diff options
author | Thomas Kluyver <takowl@gmail.com> | 2013-09-25 16:37:21 -0700 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2013-09-25 16:37:21 -0700 |
commit | 4c19cc491fa2ad0ee1cad29078411e0b05a52e28 (patch) | |
tree | bce0cd4dc100c3a4640bfba158e87a4cab708e3c | |
parent | 8f2cdbbdd285d81b00f49f07351776b3d6ab7a8e (diff) | |
download | pexpect-git-4c19cc491fa2ad0ee1cad29078411e0b05a52e28.tar.gz |
Improvements to test framework
-rw-r--r-- | tests/PexpectTestCase.py | 3 | ||||
-rwxr-xr-x | tools/testall.py | 2 |
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: |