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
65830ef8
Commit
65830ef8
authored
Apr 20, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checking for failing configuration.
parent
a1815c04
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
src/gevent/testing/skipping.py
src/gevent/testing/skipping.py
+6
-0
src/gevent/testing/testrunner.py
src/gevent/testing/testrunner.py
+3
-1
src/gevent/tests/known_failures.py
src/gevent/tests/known_failures.py
+1
-1
src/gevent/tests/test__socket.py
src/gevent/tests/test__socket.py
+2
-1
No files found.
src/gevent/testing/skipping.py
View file @
65830ef8
...
...
@@ -32,6 +32,8 @@ def _do_not_skip(reason):
return
_identity
skipOnMac
=
_do_not_skip
skipOnMacOnCI
=
_do_not_skip
skipOnWindows
=
_do_not_skip
skipOnAppVeyor
=
_do_not_skip
skipOnCI
=
_do_not_skip
...
...
@@ -62,6 +64,8 @@ skipOnLibev = _do_not_skip
if
sysinfo
.
WIN
:
skipOnWindows
=
unittest
.
skip
if
sysinfo
.
OSX
:
skipOnMac
=
unittest
.
skip
if
sysinfo
.
RUNNING_ON_APPVEYOR
:
# See comments scattered around about timeouts and the timer
...
...
@@ -76,6 +80,8 @@ if sysinfo.RUNNING_ON_APPVEYOR:
if
sysinfo
.
RUNNING_ON_CI
:
skipOnCI
=
unittest
.
skip
if
sysinfo
.
OSX
:
skipOnMacOnCI
=
unittest
.
skip
if
sysinfo
.
RUNNING_ON_MANYLINUX
:
skipOnManylinux
=
unittest
.
skip
...
...
src/gevent/testing/testrunner.py
View file @
65830ef8
...
...
@@ -431,7 +431,7 @@ class Discovery(object):
cmd
=
self
.
__begin_command
()
cmd
.
append
(
'-m'
)
cmd
.
append
(
'unittest'
)
cmd
.
append
(
'-v'
)
#
cmd.append('-v')
for
name
in
group
:
cmd
.
append
(
name
)
self
.
commands
.
insert
(
0
,
(
cmd
,
DEFAULT_RUN_OPTIONS
.
copy
()))
...
...
@@ -537,6 +537,8 @@ def matches(possibilities, command, include_flaky=True):
# XXX: This could be much better. Our command needs better structure.
if
command
.
endswith
(
' '
+
line
)
or
command
.
endswith
(
line
.
replace
(
".py"
,
''
)):
return
True
if
' '
not
in
command
and
command
==
line
:
return
True
return
False
...
...
src/gevent/tests/known_failures.py
View file @
65830ef8
...
...
@@ -452,7 +452,7 @@ class Definitions(DefinitionsBase):
test__refcount
=
Ignored
(
"Sometimes fails to connect for no reason"
,
when
=
(
CI
&
OSX
)
|
(
CI
&
PYPY
),
when
=
(
CI
&
OSX
)
|
(
CI
&
PYPY
)
|
APPVEYOR
,
ignore_coverage
=
PYPY
)
...
...
src/gevent/tests/test__socket.py
View file @
65830ef8
...
...
@@ -22,6 +22,7 @@ from gevent.testing import support
from
gevent.testing
import
params
from
gevent.testing.sockets
import
tcp_listener
from
gevent.testing.skipping
import
skipWithoutExternalNetwork
from
gevent.testing.skipping
import
skipOnMacOnCI
# we use threading on purpose so that we can test both regular and
# gevent sockets with the same code
...
...
@@ -49,7 +50,6 @@ class Thread(_Thread):
class
TestTCP
(
greentest
.
TestCase
):
maxDiff
=
None
__timeout__
=
None
TIMEOUT_ERROR
=
socket
.
timeout
long_data
=
", "
.
join
([
str
(
x
)
for
x
in
range
(
20000
)])
...
...
@@ -221,6 +221,7 @@ class TestTCP(greentest.TestCase):
def
test_sendall_unicode
(
self
):
self
.
_test_sendall
(
six
.
text_type
(
self
.
long_data
))
@
skipOnMacOnCI
(
"Sometimes fails for no apparent reason (buffering?)"
)
def
test_sendall_array
(
self
):
data
=
array
.
array
(
"B"
,
self
.
long_data
)
self
.
_test_sendall
(
data
)
...
...
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