Skip to content

Commit

Permalink
Tests: Adjust dependencies of Mocket library to make Python 3.11 work
Browse files Browse the repository at this point in the history
Currently, because of `http-parser` not supporting it, Mocket is not
ready for Python 3.11 yet. However, older versions work.
  • Loading branch information
amotl committed Dec 3, 2022
1 parent 279b752 commit ffcffba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ pyfakefs<6
esp32-machine-emulator<2
fake-rpi<1

mocket>=3.10.9,<3.11
# Use a modern version of Mocket in general, but downgrade on Python 3.11.
# https://github.com/mindflayer/python-mocket/pull/181
mocket>=3.10.9,<3.11; python_version<"3.11"
mocket<3.9; python_version>="3.11"

httpretty<1
pytest-httpserver<2

Expand Down

0 comments on commit ffcffba

Please sign in to comment.