diff options
author | Simon Glass | 2014-08-28 09:43:35 -0600 |
---|---|---|
committer | Simon Glass | 2014-09-05 13:40:41 -0600 |
commit | e752edcb6b22b2c42c8064d66a93f0910cac6fef (patch) | |
tree | 13a11ab0b2beb9930a917ba6e04b09b8d53bdbf5 /tools/patman/gitutil.py | |
parent | 6ba5737ff06f09ad980cb1feee059c12bf89a7ff (diff) |
patman: Correct unit tests to run correctly
It seems that doctest behaves differently now, and some of the unit tests
do not run. Adjust the tests to work correctly.
./tools/patman/patman --test
<unittest.result.TestResult run=10 errors=0 failures=0>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r-- | tools/patman/gitutil.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index e2b4959d58b..29e6fdd43b6 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman/gitutil.py @@ -478,13 +478,13 @@ def LookupEmail(lookup_name, alias=None, raise_on_error=True, level=0): ... OSError: Recursive email alias at 'other' >>> LookupEmail('odd', alias, raise_on_error=False) - \033[1;31mAlias 'odd' not found\033[0m + Alias 'odd' not found [] >>> # In this case the loop part will effectively be ignored. >>> LookupEmail('loop', alias, raise_on_error=False) - \033[1;31mRecursive email alias at 'other'\033[0m - \033[1;31mRecursive email alias at 'john'\033[0m - \033[1;31mRecursive email alias at 'mary'\033[0m + Recursive email alias at 'other' + Recursive email alias at 'john' + Recursive email alias at 'mary' ['j.bloggs@napier.co.nz', 'm.poppins@cloud.net'] """ if not alias: |