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
633a7e52
Commit
633a7e52
authored
Feb 14, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Broaden the skip, seen on Travis occassionally. Cannot reproduce.
parent
af8e9dac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
src/greentest/greentest/flaky.py
src/greentest/greentest/flaky.py
+15
-0
src/greentest/test__refcount.py
src/greentest/test__refcount.py
+5
-3
No files found.
src/greentest/greentest/flaky.py
View file @
633a7e52
...
...
@@ -20,6 +20,7 @@
from
__future__
import
absolute_import
,
print_function
,
division
import
sys
import
functools
import
unittest
from
gevent.util
import
dump_stacks
...
...
@@ -93,3 +94,17 @@ if sysinfo.RUNNING_ON_CI or (sysinfo.PYPY and sysinfo.WIN):
if
sysinfo
.
LIBUV
:
reraiseFlakyTestRaceConditionLibuv
=
reraiseFlakyTestRaceCondition
reraiseFlakyTestTimeoutLibuv
=
reraiseFlakyTestTimeout
def
reraises_flaky_timeout
(
exc_kind
):
def
wrapper
(
f
):
@
functools
.
wraps
(
f
)
def
m
(
*
args
):
try
:
f
(
*
args
)
except
exc_kind
:
reraiseFlakyTestTimeout
()
return
m
return
wrapper
src/greentest/test__refcount.py
View file @
633a7e52
...
...
@@ -42,6 +42,7 @@ _socket.socket = Socket
import
greentest
from
gevent
import
monkey
;
monkey
.
patch_all
()
from
greentest
import
flaky
from
pprint
import
pformat
try
:
...
...
@@ -137,16 +138,17 @@ def run_and_check(run_client):
raise
AssertionError
(
'server should be dead by now'
)
@
greentest
.
skipOnAppVeyor
(
"Often fail with timeouts or force closed connections; not sure why."
)
@
greentest
.
skipOnPyPy3OnCI
(
"Often fails with timeouts; not sure why."
)
@
greentest
.
skipOnCI
(
"Often fail with timeouts or force closed connections; not sure why."
)
class
Test
(
greentest
.
TestCase
):
__timeout__
=
10
__timeout__
=
greentest
.
LARGE_TIMEOUT
@
flaky
.
reraises_flaky_timeout
(
socket
.
timeout
)
def
test_clean_exit
(
self
):
run_and_check
(
True
)
run_and_check
(
True
)
@
flaky
.
reraises_flaky_timeout
(
socket
.
timeout
)
def
test_timeout_exit
(
self
):
run_and_check
(
False
)
run_and_check
(
False
)
...
...
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