Repository navigation
Closed
Description
Looks like latest version test suite is not ready for latest werkzeug 3.0.0
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-httpbin-0.10.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-httpbin-0.10.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.2, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/httpbin-release-v0.10.1
collected 0 items / 1 error
========================================================================================== ERRORS ===========================================================================================
__________________________________________________________________________ ERROR collecting tests/test_httpbin.py ___________________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/httpbin-release-v0.10.1/tests/test_httpbin.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_httpbin.py:12: in <module>
import httpbin
httpbin/__init__.py:3: in <module>
from .core import *
httpbin/core.py:35: in <module>
from werkzeug.http import parse_authorization_header
E ImportError: cannot import name 'parse_authorization_header' from 'werkzeug.http' (/usr/lib/python3.8/site-packages/werkzeug/http.py)
================================================================================== short test summary info ==================================================================================
ERROR tests/test_httpbin.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================================================== 1 error in 0.26s ======================================================================================Reacted by Safihre
Metadata
Metadata
Assignees
Labels
No labels
Activity
frantisekz commentedon Dec 8, 2023
FYI, I've backported Werkzeug 3 support to the Fedora httpbin package in Rawhide branch: https://src.fedoraproject.org/rpms/python-httpbin/c/54fe8e1f94f208b16ef0588e4eb69aaa107e9867?branch=rawhide
hartwork commentedon Dec 9, 2023
Pull request #29 seems related. @kloczek can this be closed as fixed on
main?