Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9207C10075 for ; Mon, 2 Feb 2015 22:55:14 +0000 (UTC) Received: (qmail 71557 invoked by uid 500); 2 Feb 2015 22:54:59 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 71530 invoked by uid 500); 2 Feb 2015 22:54:59 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 71518 invoked by uid 99); 2 Feb 2015 22:54:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2015 22:54:59 +0000 Date: Mon, 2 Feb 2015 22:54:59 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-9300) Tests fail with python 2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-9300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14302175#comment-14302175 ] Hudson commented on AMBARI-9300: -------------------------------- FAILURE: Integrated in Ambari-trunk-Commit-docker #841 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/841/]) AMBARI-9300. Tests fail with python 2.6. (Yurii Shylov via mahadev) (mahadev: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=eb7e11c639be80d89531232b202d44f25e1c2636) * ambari-agent/src/test/python/resource_management/TestSecurityCommons.py > Tests fail with python 2.6 > -------------------------- > > Key: AMBARI-9300 > URL: https://issues.apache.org/jira/browse/AMBARI-9300 > Project: Ambari > Issue Type: Bug > Components: ambari-agent > Affects Versions: 2.0.0 > Reporter: Yurii Shylov > Assignee: Yurii Shylov > Fix For: 2.0.0 > > Attachments: AMBARI-9300.patch > > > Test fails with next error: > {code} > ====================================================================== > ERROR: test_get_params_from_filesystem_JAAS (TestSecurityCommons.TestSecurityCommons) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/var/lib/jenkins/workspace/test-your-branch-python/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py", line 146, in test_get_params_from_filesystem_JAAS > self.assertIn('test_jaas', result) > AttributeError: 'TestSecurityCommons' object has no attribute 'assertIn' > ---------------------------------------------------------------------- > {code} > According to [unittest documentation|https://docs.python.org/2/library/unittest.html] assertIn was added in python 2.7: > || Method||Checks that||New in|| > |assertIn(a, b)|a in b|2.7| -- This message was sent by Atlassian JIRA (v6.3.4#6332)