Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test_package_discovery fails on Python 3.8 #93

Closed
@jaraco

Description

@jaraco

In GitLab by @kapsh on Oct 12, 2019, 13:15

Run tox -e py38 -- -fv

Result:

py38 develop-inst-noop: /home/kapsh/repos/pytest_friends/importlib_metadata
py38 installed: atomicwrites==1.3.0,attrs==19.2.0,-e git+https://gitlab.com/python-devs/importlib_metadata@08a3782fc382d4d2671da66a3bc0e11695d091f1#egg=importlib_metadata,more-itertools==7.2.0,packaging==19.2,pluggy==0.13.0,py==1.8.0,pyparsing==2.4.2,pytest==5.2.1,six==1.12.0,wcwidth==0.1.7,zipp==0.6.0
py38 run-test-pre: PYTHONHASHSEED='3503751603'
py38 run-test: commands[0] | python -m unittest discover -f
..........................F
======================================================================
FAIL: test_package_discovery (importlib_metadata.tests.test_main.DiscoveryTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kapsh/repos/pytest_friends/importlib_metadata/importlib_metadata/tests/test_main.py", line 160, in test_package_discovery
    assert all(
AssertionError

----------------------------------------------------------------------
Ran 27 tests in 0.093s

FAILED (failures=1)

It seems that isinstance(dist, Distribution) returns False for some of distributions. This test passes when running on Python 3.7.

Python 3.8.0rc1, importlib_metadata 08a3782 (latest master).

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions