2013-09-26 21:42:03 +02:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.skipif
|
2013-08-27 16:52:55 +02:00
|
|
|
def test_timeout(script):
|
2014-01-28 15:17:51 +01:00
|
|
|
result = script.pip(
|
|
|
|
"--timeout", "0.01", "install", "-vvv", "INITools",
|
2013-08-18 05:50:32 +02:00
|
|
|
expect_error=True,
|
|
|
|
)
|
2014-01-28 15:17:51 +01:00
|
|
|
assert (
|
2018-04-13 14:08:51 +02:00
|
|
|
"Could not fetch URL https://pypi.org/simple/INITools/: "
|
2014-01-28 15:17:51 +01:00
|
|
|
"timed out" in result.stdout
|
|
|
|
)
|
|
|
|
assert (
|
2018-04-13 14:08:51 +02:00
|
|
|
"Could not fetch URL https://pypi.org/simple/: "
|
2014-01-28 15:17:51 +01:00
|
|
|
"timed out" in result.stdout
|
|
|
|
)
|