Commit a3417689 authored by Jason Madden's avatar Jason Madden

Tweak timeout for test__pywsgi.py on windows.

Even before this it was often right at the border on Py38 for some reason.
parent c9f8d6c7
...@@ -142,7 +142,7 @@ install: ...@@ -142,7 +142,7 @@ install:
# Upgrade to the latest version of pip to avoid it displaying warnings # Upgrade to the latest version of pip to avoid it displaying warnings
# about it being out of date. # about it being out of date.
- "%CMD_IN_ENV% %PYEXE% -m pip install --disable-pip-version-check --user --upgrade \"pip<19.1\"" - "%CMD_IN_ENV% %PYEXE% -m pip install --disable-pip-version-check --user --upgrade pip"
- ps: "if(Test-Path(\"${env:PYTHON}\\bin\")) {ls ${env:PYTHON}\\bin;}" - ps: "if(Test-Path(\"${env:PYTHON}\\bin\")) {ls ${env:PYTHON}\\bin;}"
- ps: "if(Test-Path(\"${env:PYTHON}\\Scripts\")) {ls ${env:PYTHON}\\Scripts;}" - ps: "if(Test-Path(\"${env:PYTHON}\\Scripts\")) {ls ${env:PYTHON}\\Scripts;}"
......
...@@ -32,7 +32,7 @@ except (ImportError, OSError, IOError): ...@@ -32,7 +32,7 @@ except (ImportError, OSError, IOError):
# This can raise a wide variety of errors # This can raise a wide variety of errors
pass pass
TIMEOUT = 100 TIMEOUT = 100 # seconds
DEFAULT_NWORKERS = int(os.environ.get('NWORKERS') or max(cpu_count() - 1, 4)) DEFAULT_NWORKERS = int(os.environ.get('NWORKERS') or max(cpu_count() - 1, 4))
if DEFAULT_NWORKERS > 10: if DEFAULT_NWORKERS > 10:
DEFAULT_NWORKERS = 10 DEFAULT_NWORKERS = 10
......
...@@ -383,6 +383,15 @@ if APPVEYOR or TRAVIS: ...@@ -383,6 +383,15 @@ if APPVEYOR or TRAVIS:
'test__pywsgi.py', 'test__pywsgi.py',
] ]
if APPVEYOR:
if sys.version_info[:3] == (3, 8, 0):
# For some reason this takes *way* too long, about 100s, which
# often goes just over the default timeout of 100s. This makes no sense.
# But it also takes nearly that long in 3.7. 3.6 and earlier are much faster.
IGNORED_TESTS += [
'test__pywsgi.py',
]
# tests that can't be run when coverage is enabled # tests that can't be run when coverage is enabled
IGNORE_COVERAGE = [ IGNORE_COVERAGE = [
# Hangs forever # Hangs forever
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment