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 0CFAB1817A for ; Wed, 2 Sep 2015 18:40:40 +0000 (UTC) Received: (qmail 40452 invoked by uid 500); 2 Sep 2015 18:40:39 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 40417 invoked by uid 500); 2 Sep 2015 18:40:39 -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 40403 invoked by uid 99); 2 Sep 2015 18:40:39 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2015 18:40:39 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 2AAC826DFF9; Wed, 2 Sep 2015 18:40:38 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7500253350119434379==" MIME-Version: 1.0 Subject: Re: Review Request 38064: Ambari-server 'mvn clean test' fails when Python 2.6 is picked up From: "Myroslav Papirkovskyy" To: "Myroslav Papirkovskyy" Cc: "Andrew Onischuk" , "Ambari" Date: Wed, 02 Sep 2015 18:40:38 -0000 Message-ID: <20150902184038.17241.49196@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Myroslav Papirkovskyy" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/38064/ X-Sender: "Myroslav Papirkovskyy" References: <20150902183657.17241.40917@reviews.apache.org> In-Reply-To: <20150902183657.17241.40917@reviews.apache.org> Reply-To: "Myroslav Papirkovskyy" X-ReviewRequest-Repository: ambari --===============7500253350119434379== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/38064/#review97511 ----------------------------------------------------------- Ship it! Ship It! - Myroslav Papirkovskyy On Вер. 2, 2015, 9:36 після полудня, Andrew Onischuk wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/38064/ > ----------------------------------------------------------- > > (Updated Вер. 2, 2015, 9:36 після полудня) > > > Review request for Ambari and Myroslav Papirkovskyy. > > > Bugs: AMBARI-12982 > https://issues.apache.org/jira/browse/AMBARI-12982 > > > Repository: ambari > > > Description > ------- > > On my OSX system I have Python2.6 and Python2.7. I do not have any > `/usr/bin/python2`. When I run `mvn clean test` in ambari-server/, the python > tests fail with below message > > > > ====================================================================== > ERROR: test_validateNonRootFs (test_stack_advisor.TestHDP206StackAdvisor) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/Users/sgunturi/dev/git/ambari/ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py", line 997, in test_validateNonRootFs > self.assertIsNone(self.stackAdvisor.validatorNotRootFs(properties, 'property1', hostInfo)) > AttributeError: 'TestHDP206StackAdvisor' object has no attribute 'assertIsNone' > > > It looks like `assertIsNone()` is not defined in unittest.TestCase for > Python2.6. > > I started hitting this issue after AMBARI-12912 > > > Diffs > ----- > > ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/package/scripts/oozie_server_upgrade.py 78d25bc > ambari-server/src/test/python/stacks/2.0.6/OOZIE/test_oozie_server.py 24ee07a > ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py 86a34d9 > > Diff: https://reviews.apache.org/r/38064/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Andrew Onischuk > > --===============7500253350119434379==--