labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1603581 - /labs/panopticon/pan-utils/tests/test_execute.py
Date Wed, 18 Jun 2014 19:03:38 GMT
Author: adc
Date: Wed Jun 18 19:03:37 2014
New Revision: 1603581

URL: http://svn.apache.org/r1603581
Log:
Some OSes return codes other than 1

Modified:
    labs/panopticon/pan-utils/tests/test_execute.py

Modified: labs/panopticon/pan-utils/tests/test_execute.py
URL: http://svn.apache.org/viewvc/labs/panopticon/pan-utils/tests/test_execute.py?rev=1603581&r1=1603580&r2=1603581&view=diff
==============================================================================
--- labs/panopticon/pan-utils/tests/test_execute.py (original)
+++ labs/panopticon/pan-utils/tests/test_execute.py Wed Jun 18 19:03:37 2014
@@ -33,6 +33,6 @@ def test_execute_fail():
         execute('ls ZZZ')
         assert False, 'Execution should have thrown an error'
     except ExecutionError as ee:
-        assert 1 == ee.code
+        assert ee.code
         assert [] == ee.stdout
         assert[] == ee.stderr



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message