Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-12335

Unittest failure for python 2.6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • ambari-server
    • None

    Description

      When python 2.6 is used unittests are failing:

      Running tests for stack:2.0.6 service:HBASE
      Process Process-27:
      Traceback (most recent call last):
        File "/usr/lib64/python2.6/multiprocessing/process.py", line 232, in _bootstrap
          self.run()
        File "/usr/lib64/python2.6/multiprocessing/process.py", line 88, in run
          self._target(*self._args, **self._kwargs)
        File "/home/user/ambari/ambari-server/src/test/python/unitTests.py", line 106, in stack_test_executor
          modules]
        File "/usr/lib64/python2.6/unittest.py", line 575, in loadTestsFromName
          module = __import__('.'.join(parts_copy))
        File "/home/user/ambari/ambari-server/src/test/python/stacks/2.0.6/HBASE/test_phoenix_queryserver.py", line 24, in <module>
          from unittest import skip
      ImportError: cannot import name skip
      

      Attachments

        1. AMBARI-12335.patch
          1.0 kB
          Vitaly Brodetskyi

        Issue Links

          Activity

            People

              vbrodetskyi Vitaly Brodetskyi
              vbrodetskyi Vitaly Brodetskyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: