ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-9300) Tests fail with python 2.6
Date Mon, 02 Feb 2015 22:54:59 GMT

    [ 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)

Mime
View raw message