Skip to content

Unit tests failing on Travis with Python 3.7 #9739

@alalazo

Description

@alalazo

Unit tests are failing on Travis for Python 3.7.

Steps to reproduce the issue

Any PR or build of the develop branch since October 21st started failing for Python 3.7. The error could be reproduced locally by just using python 3.7 as an interpreter:

$ python3.7 
Python 3.7.1 (default, Oct 21 2018, 04:01:51) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

$ python3.7 bin/spack test
...
web.py:133: AssertionError
_____________________________________________________ test_find_exotic_versions_of_archive_3 _____________________________________________________

    def test_find_exotic_versions_of_archive_3():
        versions = find_versions_of_archive(root_tarball, root, list_depth=3)
>       assert ver('2.0.0b2') in versions
E       AssertionError: assert Version('2.0.0b2') in {Version('0.0.0'): 'file:///home/mculpo/PycharmProjects/spack/lib/spack/spack/test/data/web/foo-0.0.0.tar.gz'}
E        +  where Version('2.0.0b2') = ver('2.0.0b2')

web.py:141: AssertionError
========================================= 9 failed, 1182 passed, 83 skipped, 1 xfailed in 221.95 seconds =========================================

The last successful build appears to be have the same hash as the first failing build.

Error Message

There are 9 tests that seems to be failing. The log can be found here.

Information on your system

The errors have been reproduced on an Ubuntu 18.04 machine and are persistent in Travis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    broken-developbugSomething isn't workingtestsGeneral test capability(ies)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions