Skip to content

Commit

Permalink
Enable mocket tests for >3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Dec 25, 2023
1 parent 6d7fb73 commit ebf7526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ extra-dependencies = [
# async-timeout is only used for testing aiohttp
"aiohttp~=3.8; python_version < '3.12'",
"async-timeout~=4.0.3; python_version < '3.12'",
# mocket disabled pook for 3.11 due to pook's compatibility issues
# https://github.com/mindflayer/python-mocket/issues/210
# Once that issue is resolved, we can re-enable mocket testing for all versions
# mocket relies on httptools which does not support PyPy
"mocket[pook]~=3.12.0; python_version < '3.11' and platform_python_implementation != 'PyPy'",
"mocket[pook]~=3.12.2; platform_python_implementation != 'PyPy'",
]

[tool.hatch.envs.lint]
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/examples_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

examples = [f.name for f in examples_dir.glob("*.py")]

if sys.version_info >= (3, 11) or platform.python_implementation() == "PyPy":

if platform.python_implementation() == "PyPy":
# See pyproject.toml note on mocket dependency
examples.remove("mocket_example.py")

Expand Down

0 comments on commit ebf7526

Please sign in to comment.