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
d2557c2e
Commit
d2557c2e
authored
Dec 05, 2017
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More on test failures for Python 3
parent
3cd21f97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
src/greentest/patched_tests_setup.py
src/greentest/patched_tests_setup.py
+13
-0
src/greentest/test__signal.py
src/greentest/test__signal.py
+10
-0
No files found.
src/greentest/patched_tests_setup.py
View file @
d2557c2e
...
...
@@ -191,6 +191,7 @@ if os.getenv('GEVENT_CORE_CFFI_ONLY') == 'libuv':
# (epoll on Raspbian 8.0/Debian Jessie/Linux 4.1.20 works;
# on a VirtualBox image of Ubuntu 15.10/Linux 4.2.0 both tests fail;
# Travis CI Ubuntu 12.04 precise/Linux 3.13 causes one of these tests to hang forever)
# XXX: Retry this with libuv 1.12+
disabled_tests
+=
[
# A 2.7 test. Tries to fork, and libuv cannot fork
'test_signal.InterProcessSignalTests.test_main'
,
...
...
@@ -203,6 +204,18 @@ if os.getenv('GEVENT_CORE_CFFI_ONLY') == 'libuv':
# crashes with EPERM, which aborts the epoll loop, even
# though it was allowed in in the first place.
'test_asyncore.FileWrapperTest.test_dispatcher'
,
# XXX Debug this.
# Fails on line 342:
# self.assertEqual(1, len(s.select(-1)))
# AssertionError 1 != 0
# Is the negative time not letting the loop cycle or something?
# The -1 currently passes all the way through select.poll to
# gevent.event.Event.wait to gevent.timeout.Timeout to gevent.libuv.loop.timer
# to gevent.libuv.watchers.timer, where I think it is reset to 0.001.
# Alternately, this comes right after a call to s.select(0); perhaps libuv
# isn't reporting twice? We cache the watchers, maybe we need a new watcher?
'test_selectors.PollSelectorTestCase.test_timeout'
,
]
def
_make_run_with_original
(
mod_name
,
func_name
):
...
...
src/greentest/test__signal.py
View file @
d2557c2e
...
...
@@ -44,6 +44,9 @@ if hasattr(signal, 'SIGALRM'):
finally
:
sig
.
cancel
()
@
greentest
.
skipIf
(
greentest
.
PY3
and
greentest
.
LIBUV
and
greentest
.
RUNNING_ON_TRAVIS
,
"Fails for unknown reason"
)
@
greentest
.
ignores_leakcheck
def
test_reload
(
self
):
# The site module tries to set attributes
...
...
@@ -56,6 +59,13 @@ if hasattr(signal, 'SIGALRM'):
# doesn't happen). See
# https://github.com/gevent/gevent/issues/805
# This fails on Python 3.6 under linux (travis CI) but not
# locally on macOS with:
# AttributeError: cffi library 'gevent.libuv._corecffi' has no function,
# constant or global variable named '__loader__'
# which in turn leads to:
# SystemError: <built-in function getattr> returned a result with an error set
import
gevent.signal
# make sure it's in sys.modules pylint:disable=redefined-outer-name
assert
gevent
.
signal
import
site
...
...
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