You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by ad...@apache.org on 2014/06/28 23:43:01 UTC

svn commit: r1606398 - /labs/panopticon/pan-utils/src/asf/utils/test.py

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