ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitro Lisnichenko" <dlysniche...@hortonworks.com>
Subject Review Request 29405: Fix agent unittests to run with python2.6
Date Wed, 24 Dec 2014 19:28:53 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29405/
-----------------------------------------------------------

Review request for Ambari, Mahadev Konar and Nate Cole.


Bugs: AMBARI-8910
    https://issues.apache.org/jira/browse/AMBARI-8910


Repository: ambari


Description
-------

Agent unittests are failing on python 2.6:
{code}
Traceback (most recent call last):
  File "/home/user/ambari/ambari-agent/src/test/python/unitTests.py", line 130, in <module>
    main()
  File "/home/user/ambari/ambari-agent/src/test/python/unitTests.py", line 95, in main
    suite = all_tests_suite()
  File "/home/user/ambari/ambari-agent/src/test/python/unitTests.py", line 86, in all_tests_suite
    suite = unittest.TestLoader().loadTestsFromNames(tests_list)
  File "/usr/lib64/python2.6/unittest.py", line 612, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/home/user/ambari/ambari-agent/src/test/python/resource_management/TestSecurityCommons.py",
line 32
    params["config_file"]["property1"] = {"firstCase"}
                                                     ^
SyntaxError: invalid syntax
{code}


Diffs
-----

  ambari-agent/src/test/python/resource_management/TestSecurityCommons.py 1658609 

Diff: https://reviews.apache.org/r/29405/diff/


Testing
-------

mvn clean test


Thanks,

Dmitro Lisnichenko


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message