diff options
author | Chris Johns <chrisj@rtems.org> | 2018-11-23 15:02:52 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-11-23 15:02:52 +1100 |
commit | 7e5cdeaabeaa95b8533af626b99a43c93e5ecf6f (patch) | |
tree | 2ecd175bb744024567e6823353cd50b795604b35 /rtemstoolkit/macros.py | |
parent | 6fa09650b8a936782aa9352e5e23001360317b9d (diff) |
rtemstoolkit: Add unit testing for the python modules
- Add support to run the unit tests for the rtemstoolkit python
modules from waf. Enter './waf test' for the tests to be run on
python2 and python3.
- Update the importing of rtemstoolkit modules to the standard
method which works on python2 and python3.
- Update the README.
Diffstat (limited to 'rtemstoolkit/macros.py')
-rw-r--r-- | rtemstoolkit/macros.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/rtemstoolkit/macros.py b/rtemstoolkit/macros.py index ed8cd96..e3776bd 100644 --- a/rtemstoolkit/macros.py +++ b/rtemstoolkit/macros.py @@ -40,18 +40,9 @@ import re import os import string -# -# Support to handle use in a package and as a unit test. -# If there is a better way to let us know. -# -try: - from . import error - from . import log - from . import path -except (ValueError, SystemError): - import error - import log - import path +from rtemstoolkit import error +from rtemstoolkit import log +from rtemstoolkit import path # # Macro tables |