[jira] [Updated] (AMBARI-18337) Syntax Error in Ambari HAWQ Unit test with Python 2.6
[ https://issues.apache.org/jira/browse/AMBARI-18337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lav Jain updated AMBARI-18337: -- Resolution: Fixed Fix Version/s: 2.4.2 2.5.0 trunk Status: Resolved (was: Patch Available) > Syntax Error in Ambari HAWQ Unit test with Python 2.6 > - > > Key: AMBARI-18337 > URL: https://issues.apache.org/jira/browse/AMBARI-18337 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: trunk > Environment: CentOS6, Python 2.6 >Reporter: Masahiro Tanaka >Assignee: Masahiro Tanaka > Fix For: trunk, 2.5.0, 2.4.2 > > Attachments: AMBARI-18337.patch > > > With Python 2.6, {code} {"A", "B"} {code} syntax isn't allowed. > Ref. https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset > {code} > As of Python 2.7, non-empty sets (not frozensets) can be created by placing a > comma-separated list of elements within braces, for example: {'jack', > 'sjoerd'}, in addition to the set constructor. > {code} > Error > {code} > Traceback (most recent call last): > File "unitTests.py", line 129, in stack_test_executor > modules] > File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName > module = __import__('.'.join(parts_copy)) > File > "/tmp/ambari/ambari-server/src/test/python/common-services/HAWQ/test_service_advisor.py", > li > ne 646 > self.assertFalse({'HAWQMASTER', 'HAWQSTANDBY'}.issubset(hostComponents)) > ^ > SyntaxError: invalid syntax > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (AMBARI-18337) Syntax Error in Ambari HAWQ Unit test with Python 2.6
[ https://issues.apache.org/jira/browse/AMBARI-18337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Masahiro Tanaka updated AMBARI-18337: - Status: Patch Available (was: Open) > Syntax Error in Ambari HAWQ Unit test with Python 2.6 > - > > Key: AMBARI-18337 > URL: https://issues.apache.org/jira/browse/AMBARI-18337 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: trunk > Environment: CentOS6, Python 2.6 >Reporter: Masahiro Tanaka >Assignee: Masahiro Tanaka > Attachments: AMBARI-18337.patch > > > With Python 2.6, {code} {"A", "B"} {code} syntax isn't allowed. > Ref. https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset > {code} > As of Python 2.7, non-empty sets (not frozensets) can be created by placing a > comma-separated list of elements within braces, for example: {'jack', > 'sjoerd'}, in addition to the set constructor. > {code} > Error > {code} > Traceback (most recent call last): > File "unitTests.py", line 129, in stack_test_executor > modules] > File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName > module = __import__('.'.join(parts_copy)) > File > "/tmp/ambari/ambari-server/src/test/python/common-services/HAWQ/test_service_advisor.py", > li > ne 646 > self.assertFalse({'HAWQMASTER', 'HAWQSTANDBY'}.issubset(hostComponents)) > ^ > SyntaxError: invalid syntax > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (AMBARI-18337) Syntax Error in Ambari HAWQ Unit test with Python 2.6
[ https://issues.apache.org/jira/browse/AMBARI-18337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Masahiro Tanaka updated AMBARI-18337: - Attachment: AMBARI-18337.patch Attach a patch > Syntax Error in Ambari HAWQ Unit test with Python 2.6 > - > > Key: AMBARI-18337 > URL: https://issues.apache.org/jira/browse/AMBARI-18337 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: trunk > Environment: CentOS6, Python 2.6 >Reporter: Masahiro Tanaka >Assignee: Masahiro Tanaka > Attachments: AMBARI-18337.patch > > > With Python 2.6, {code} {"A", "B"} {code} syntax isn't allowed. > Ref. https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset > {code} > As of Python 2.7, non-empty sets (not frozensets) can be created by placing a > comma-separated list of elements within braces, for example: {'jack', > 'sjoerd'}, in addition to the set constructor. > {code} > Error > {code} > Traceback (most recent call last): > File "unitTests.py", line 129, in stack_test_executor > modules] > File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName > module = __import__('.'.join(parts_copy)) > File > "/tmp/ambari/ambari-server/src/test/python/common-services/HAWQ/test_service_advisor.py", > li > ne 646 > self.assertFalse({'HAWQMASTER', 'HAWQSTANDBY'}.issubset(hostComponents)) > ^ > SyntaxError: invalid syntax > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (AMBARI-18337) Syntax Error in Ambari HAWQ Unit test with Python 2.6
[ https://issues.apache.org/jira/browse/AMBARI-18337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Masahiro Tanaka updated AMBARI-18337: - Description: With Python 2.6, {code} {"A", "B"} {code} syntax isn't allowed. Ref. https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset {code} As of Python 2.7, non-empty sets (not frozensets) can be created by placing a comma-separated list of elements within braces, for example: {'jack', 'sjoerd'}, in addition to the set constructor. {code} Error {code} Traceback (most recent call last): File "unitTests.py", line 129, in stack_test_executor modules] File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName module = __import__('.'.join(parts_copy)) File "/tmp/ambari/ambari-server/src/test/python/common-services/HAWQ/test_service_advisor.py", li ne 646 self.assertFalse({'HAWQMASTER', 'HAWQSTANDBY'}.issubset(hostComponents)) ^ SyntaxError: invalid syntax {code} was: With Python 2.6, {code} {"A", "B"} {code} syntax isn't allowed. Ref. https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset {code} As of Python 2.7, non-empty sets (not frozensets) can be created by placing a comma-separated list of elements within braces, for example: {'jack', 'sjoerd'}, in addition to the set constructor. {code} > Syntax Error in Ambari HAWQ Unit test with Python 2.6 > - > > Key: AMBARI-18337 > URL: https://issues.apache.org/jira/browse/AMBARI-18337 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: trunk > Environment: CentOS6, Python 2.6 >Reporter: Masahiro Tanaka >Assignee: Masahiro Tanaka > > With Python 2.6, {code} {"A", "B"} {code} syntax isn't allowed. > Ref. https://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset > {code} > As of Python 2.7, non-empty sets (not frozensets) can be created by placing a > comma-separated list of elements within braces, for example: {'jack', > 'sjoerd'}, in addition to the set constructor. > {code} > Error > {code} > Traceback (most recent call last): > File "unitTests.py", line 129, in stack_test_executor > modules] > File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName > module = __import__('.'.join(parts_copy)) > File > "/tmp/ambari/ambari-server/src/test/python/common-services/HAWQ/test_service_advisor.py", > li > ne 646 > self.assertFalse({'HAWQMASTER', 'HAWQSTANDBY'}.issubset(hostComponents)) > ^ > SyntaxError: invalid syntax > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)