Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail with python 3.6 on Fedora 37 #184

Open
nirs opened this issue Mar 4, 2023 · 1 comment
Open

Tests fail with python 3.6 on Fedora 37 #184

nirs opened this issue Mar 4, 2023 · 1 comment

Comments

@nirs
Copy link
Member

nirs commented Mar 4, 2023

To reproduce:

  • create venv
  • install pip and containers/requirements.txt
  • install python3.6 (dnf install python36)
  • run tox
================================================= test session starts ==================================================
platform linux -- Python 3.6.15, pytest-7.0.1, pluggy-1.0.0
cachedir: .tox/test-py36/.pytest_cache
rootdir: /home/nsoffer/src/ovirt-imageio, configfile: tox.ini
plugins: timeout-2.1.0, cov-4.0.0
timeout: 30.0s
timeout method: thread
timeout func_only: False
collected 1670 items / 1 error / 22 deselected / 1647 selected                                                         

======================================================== ERRORS ========================================================
__________________________________________ ERROR collecting test/http_test.py __________________________________________
test/http_test.py:1143: in <module>
    "address", [a[4][0] for a in http.find_addresses(socket.gethostname())])
test/http_test.py:1143: in <listcomp>
    "address", [a[4][0] for a in http.find_addresses(socket.gethostname())])
ovirt_imageio/_internal/http.py:860: in find_addresses
    address = ipaddress.ip_address(ai[4][0])
/usr/lib64/python3.6/ipaddress.py:54: in ip_address
    address)
E   ValueError: 'fe80::1123:81d2:7ad2:15e3%enp9s0u2u1u2' does not appear to be an IPv4 or IPv6 address
@nirs
Copy link
Member Author

nirs commented Mar 4, 2023

Tested also python3.9 and python3.10 on Fedora 37. In the first build I forgot to install
the python3*-devel package and both had some test failures.

I could not find python3.9-devel but after installing python3.10-devel all tests passed
in both versions.

Seems that we need clear documentation on how to test with multiple python version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant