Skip to content
Permalink
Browse files

fix for travid

  • Loading branch information...
sdpython committed Jun 4, 2017
1 parent 22b211d commit 22d2068b1cee53150afcee5f336d416991f97742
Showing with 11 additions and 6 deletions.
  1. +11 −6 _unittests/ut_loghelper/test_run_cmd_exc.py
@@ -45,12 +45,17 @@ def test_run_cmd_exc(self):
out, err = parse_exception_message(e)
ex = e
self.assertTrue(not no_exception)
if out is None or err is None:
raise Exception("A\n" + str(ex))
if len(out) > 0:
raise Exception("B\n" + str(ex))
if len(err) == 0:
raise Exception("C\n" + str(ex))
if sys.platform.startswith("win"):
if out is None or err is None:
raise Exception("A\n" + str(ex))
if len(out) > 0:
raise Exception("B\n" + str(ex))
if len(err) == 0:
raise Exception("C\n" + str(ex))
else:
self.assertTrue(out is None)
self.assertTrue(err is None)
self.assertTrue(isinstance(ex, Exception))


if __name__ == "__main__":

0 comments on commit 22d2068

Please sign in to comment.
You can’t perform that action at this time.