Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
236739e4
Commit
236739e4
authored
Feb 13, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some test tweaks.
parent
007587aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
src/greentest/test___example_servers.py
src/greentest/test___example_servers.py
+3
-2
src/greentest/test__core_timer.py
src/greentest/test__core_timer.py
+5
-2
src/greentest/test__socket_dns.py
src/greentest/test__socket_dns.py
+3
-0
No files found.
src/greentest/test___example_servers.py
View file @
236739e4
...
@@ -9,8 +9,8 @@ from unittest import SkipTest
...
@@ -9,8 +9,8 @@ from unittest import SkipTest
import
socket
import
socket
import
ssl
import
ssl
import
greentest
from
greentest
import
DEFAULT_XPC_SOCKET_TIMEOUT
from
greentest
import
DEFAULT_XPC_SOCKET_TIMEOUT
from
greentest
import
main
from
greentest
import
util
from
greentest
import
util
from
greentest
import
params
from
greentest
import
params
...
@@ -101,6 +101,7 @@ class Test_wsgiserver_ssl(Test_wsgiserver):
...
@@ -101,6 +101,7 @@ class Test_wsgiserver_ssl(Test_wsgiserver):
ssl_ctx
=
ssl
.
_create_unverified_context
()
ssl_ctx
=
ssl
.
_create_unverified_context
()
@
greentest
.
skipOnLibuvOnCIOnPyPy
(
"Timing issues sometimes lead to a connection refused"
)
class
Test_webproxy
(
Test_wsgiserver
):
class
Test_webproxy
(
Test_wsgiserver
):
server
=
'webproxy.py'
server
=
'webproxy.py'
...
@@ -136,4 +137,4 @@ class Test_webproxy(Test_wsgiserver):
...
@@ -136,4 +137,4 @@ class Test_webproxy(Test_wsgiserver):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
main
()
greentest
.
main
()
src/greentest/test__core_timer.py
View file @
236739e4
from
__future__
import
print_function
from
__future__
import
print_function
from
gevent
import
co
re
from
gevent
import
co
nfig
from
greentest
import
TestCase
from
greentest
import
TestCase
from
greentest
import
main
from
greentest
import
main
...
@@ -13,11 +13,14 @@ class Test(TestCase):
...
@@ -13,11 +13,14 @@ class Test(TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
called
=
[]
self
.
called
=
[]
self
.
loop
=
co
re
.
loop
(
default
=
True
)
self
.
loop
=
co
nfig
.
loop
(
default
=
True
)
self
.
timer
=
self
.
loop
.
timer
(
0.001
,
repeat
=
self
.
repeat
)
self
.
timer
=
self
.
loop
.
timer
(
0.001
,
repeat
=
self
.
repeat
)
def
tearDown
(
self
):
def
tearDown
(
self
):
self
.
timer
.
close
()
self
.
timer
.
close
()
self
.
loop
.
destroy
()
self
.
timer
=
None
self
.
loop
=
None
def
f
(
self
,
x
=
None
):
def
f
(
self
,
x
=
None
):
self
.
called
.
append
(
1
)
self
.
called
.
append
(
1
)
...
...
src/greentest/test__socket_dns.py
View file @
236739e4
...
@@ -25,6 +25,7 @@ if getattr(resolver, 'pool', None) is not None:
...
@@ -25,6 +25,7 @@ if getattr(resolver, 'pool', None) is not None:
from
greentest.sysinfo
import
RESOLVER_NOT_SYSTEM
from
greentest.sysinfo
import
RESOLVER_NOT_SYSTEM
from
greentest.sysinfo
import
RESOLVER_DNSPYTHON
from
greentest.sysinfo
import
RESOLVER_DNSPYTHON
from
greentest.sysinfo
import
RESOLVER_ARES
from
greentest.sysinfo
import
PY2
from
greentest.sysinfo
import
PY2
...
@@ -444,6 +445,8 @@ class SanitizedHostsFile(HostsFile):
...
@@ -444,6 +445,8 @@ class SanitizedHostsFile(HostsFile):
continue
continue
yield
name
,
addr
yield
name
,
addr
@
greentest
.
skipIf
(
greentest
.
RUNNING_ON_TRAVIS
and
RESOLVER_ARES
,
"This sometimes randomly fails on Travis with ares, beginning Feb 13, 2018"
)
class
TestEtcHosts
(
TestCase
):
class
TestEtcHosts
(
TestCase
):
MAX_HOSTS
=
os
.
getenv
(
'GEVENTTEST_MAX_ETC_HOSTS'
,
10
)
MAX_HOSTS
=
os
.
getenv
(
'GEVENTTEST_MAX_ETC_HOSTS'
,
10
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment