Commit d2557c2e authored by Jason Madden's avatar Jason Madden

More on test failures for Python 3

parent 3cd21f97
......@@ -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):
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment