labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1606398 - /labs/panopticon/pan-utils/src/asf/utils/test.py
Date Sat, 28 Jun 2014 21:43:01 GMT
Author: adc
Date: Sat Jun 28 21:43:01 2014
New Revision: 1606398

URL: http://svn.apache.org/r1606398
Log:
Sometimes there is no tooling ini file

Modified:
    labs/panopticon/pan-utils/src/asf/utils/test.py

Modified: labs/panopticon/pan-utils/src/asf/utils/test.py
URL: http://svn.apache.org/viewvc/labs/panopticon/pan-utils/src/asf/utils/test.py?rev=1606398&r1=1606397&r2=1606398&view=diff
==============================================================================
--- labs/panopticon/pan-utils/src/asf/utils/test.py (original)
+++ labs/panopticon/pan-utils/src/asf/utils/test.py Sat Jun 28 21:43:01 2014
@@ -16,6 +16,7 @@
 # specific language governing permissions and limitations
 # under the License.
 #
+import ConfigParser
 import gnupg
 
 import pytest
@@ -25,8 +26,11 @@ from asf.utils.file import temp_director
 
 
 def test_credentials_stored():
-    u, p = get_stored_credentials()
-    return not u and p
+    try:
+        u, p = get_stored_credentials()
+        return not (u and p)
+    except ConfigParser.NoOptionError:
+        return True
 
 
 ensure_credentials_stored = pytest.mark.skipif(test_credentials_stored(),



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


Mime
View raw message