#1412 Jenkins tests failing on EL6
Closed: Fixed 4 months ago by mikem. Opened 4 months ago by mikem.

Example: https://jenkins-fedora-infra.apps.ci.centos.org/job/koji/679/
(from PR #1411)

======================================================================
ERROR: Failure: SyntaxError (invalid syntax (mock.py, line 107))
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/srv/jenkins/workspace/koji/label/EL6/kojienv/lib/python2.6/site-packages/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/srv/jenkins/workspace/koji/label/EL6/kojienv/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/srv/jenkins/workspace/koji/label/EL6/kojienv/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/srv/jenkins/workspace/koji/label/EL6/tests/test_cli/test_move_build.py", line 2, in <module>
    import mock
  File "/srv/jenkins/workspace/koji/label/EL6/kojienv/lib/python2.6/site-packages/mock/__init__.py", line 2, in <module>
    import mock.mock as _mock
  File "/srv/jenkins/workspace/koji/label/EL6/kojienv/lib/python2.6/site-packages/mock/mock.py", line 107
    _builtins = {name for name in dir(builtins) if not name.startswith('_')}
                        ^
SyntaxError: invalid syntax

It looks like we are installing mock from pypy. Is the el6 python2-mock not sufficient?


Metadata Update from @mikem:
- Issue assigned to tkopecek

4 months ago

No, el6 mock is not enough. I've added limit for mock version in #1414

Metadata Update from @julian8628:
- Issue set to the milestone: 1.18

4 months ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1414 Merged 4 months ago