Replies: 4 comments
-
It sounds like you're running the tests in a custom way. The server tests are likely sensitive to the current directory and # get the 3.1.3 sdist from pypi
$ curl -O https://files.pythonhosted.org/packages/9f/69/83029f1f6300c5fb2471d621ab06f6ec6b3324685a2ce0f9777fd4a8b71e/werkzeug-3.1.3.tar.gz
$ tar xf werkzeug-3.1.3.tar.gz
$ cd werkzeug-3.1.3
# create a virtualenv
$ python3.13 -m venv .venv
$ . .venv/bin/activate
# install the build and test requirements
$ pip install -r requirements/build.txt -r requirements/tests.txt
# build and install the wheel
$ python -m build
$ pip install dist/werkzeug-3.1.3-py3-none-any.whl
# run pytest
$ pytest All tests pass successfully. |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking at this. Digging deeper again in the differences between a setup produced by what you write and what we had in pkgsrc is that pkgsrc didn't install cryptography. When I install that, the tests succeed (except for the one). |
Beta Was this translation helpful? Give feedback.
-
Hm, sorry, I had forgotten I had completely disabled the test locally. With cryptography (and all the other requirements) installed, I see the same but after more dots:
|
Beta Was this translation helpful? Give feedback.
-
Perhaps it's an issue with the exact versions of the dependencies. In pkgsrc, we usually package the newest version, and we install that version for testing. So the installed versions are:
but the autogenerated file you used has hardcoded e.g. packaging 24.1 and watchdog 5.0.3. |
Beta Was this translation helpful? Give feedback.
-
I've been updating the werkzeug package for pkgsrc.
Starting with 3.1.0 (still there in 3.1.3) I see a test hang in
test_serving.py
.If I remove the file, most other tests pass except for
I'm using the pypi source distfile, and run the tests after building and installing werkzeug by running
pytest
in the build directory.The output looks like this:
and then nothing happens.
Can you please advise how to debug/fix this? Thanks.
Environment:
Beta Was this translation helpful? Give feedback.
All reactions