import pytest


@pytest.mark.network
def test_timeout(script):
    result = script.pip(
        "--timeout",
        "0.001",
        "install",
        "-vvv",
        "INITools",
        expect_error=True,
    )
    assert (
        "Could not fetch URL https://pypi.org/simple/initools/: "
        "connection error: HTTPSConnectionPool(host='pypi.org', port=443): "
        "Max retries exceeded with url: /simple/initools/ "
    ) in result.stdout

@@ -115,16 +115,17 @@
    %220.00
+0
 1%22,%0A    

Use a shorter timeout, to ensure that this fails more often