mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix retries count for unit tests
This commit is contained in:
parent
0a750005b9
commit
9b27b06b68
1 changed files with 3 additions and 1 deletions
|
@ -17,10 +17,12 @@ from hooks import runHook
|
||||||
import anki
|
import anki
|
||||||
|
|
||||||
# syncing vars
|
# syncing vars
|
||||||
httplib2.RETRIES = 0
|
|
||||||
HTTP_TIMEOUT = 90
|
HTTP_TIMEOUT = 90
|
||||||
HTTP_PROXY = None
|
HTTP_PROXY = None
|
||||||
|
|
||||||
|
# badly named; means no retries, and doesn't affect ssl connections
|
||||||
|
httplib2.RETRIES = 1
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# httplib2 >=0.7.7
|
# httplib2 >=0.7.7
|
||||||
_proxy_info_from_environment = httplib2.proxy_info_from_environment
|
_proxy_info_from_environment = httplib2.proxy_info_from_environment
|
||||||
|
|
Loading…
Reference in a new issue