weixin_39949894 2020-11-29 16:33
浏览 0

Unit tests failing on Travis with Python 3.7

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:

console
$ 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.

该提问来源于开源项目:spack/spack

  • 写回答

5条回答 默认 最新

  • weixin_39949894 2020-11-29 16:33
    关注
    评论

报告相同问题?