Skip to content

Commit

Permalink
Pin urllib3 (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorfo authored May 4, 2023
1 parent efe797c commit f88044f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ test:

pyenv:
echo pytest_pg > .python-version && pyenv install -s 3.10.0 && pyenv virtualenv -f 3.10.0 pytest_pg

pyenv-delete:
pyenv virtualenv-delete -f pytest_pg
4 changes: 1 addition & 3 deletions pytest_pg/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ def run_pg(image: str, ready_timeout: float = 30.0) -> Generator[PG, None, None]
time.sleep(0.5)
else:
container_logs = docker_client.logs(container["Id"]).decode()
pytest.fail(
f"Failed to start postgres using {image} in {ready_timeout} seconds: {container_logs}"
)
pytest.fail(f"Failed to start postgres using {image} in {ready_timeout} seconds: {container_logs}")

yield PG(
host=LOCALHOST,
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ wheel==0.40.0
twine==4.0.2
docker==6.0.1
mypy==1.2.0
urllib3>=1.26.0,<2.0.0
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
install_requires = [
"docker>=5.0.0",
"pytest>=6.0.0",
"urllib3>=1.26.0,<2.0.0",
]


Expand Down

0 comments on commit f88044f

Please sign in to comment.