Skip to content

Commit

Permalink
ci: Resolve resource warning in py tests #2261 (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok authored Mar 13, 2024
1 parent 1c1ba96 commit 9ed9aac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion py/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ setup-tests: ## Install dependencies for tests only
python3 -m venv venv
echo "# Generated in hatch_build.py\n__platform__ = 'linux'\n__arch__ = 'amd64'" > h2o_wave/h2o_wave/metadata.py
./venv/bin/python -m pip install --editable h2o_wave
./venv/bin/pip install httpx typing_extensions
./venv/bin/pip install httpx urllib3 typing_extensions

.PHONY: docs
docs: ## Build API docs
Expand Down
3 changes: 3 additions & 0 deletions py/tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import os
import platform

# HACK: Use urllib3 import side-effect to resolve "ResourceWarning: unclosed transport" in python>=3.9 versions.
import urllib3

from .test_expando import *
from .test_python_server import *
from .test_python_server_async import *
Expand Down

0 comments on commit 9ed9aac

Please sign in to comment.