Author: Alex Gaynor <alex.gay...@gmail.com> Branch: kill-faking Changeset: r59253:617dcec9d57b Date: 2012-12-02 14:43 -0800 http://bitbucket.org/pypy/pypy/changeset/617dcec9d57b/
Log: fixed signal and epoll tests diff --git a/pypy/module/select/test/test_epoll.py b/pypy/module/select/test/test_epoll.py --- a/pypy/module/select/test/test_epoll.py +++ b/pypy/module/select/test/test_epoll.py @@ -4,8 +4,11 @@ # add a larger timeout for slow ARM machines import platform + class AppTestEpoll(object): - spaceconfig = dict(usemodules=["select", "_socket", "posix"]) + spaceconfig = { + "usemodules": ["select", "_socket", "posix", "rctime"], + } def setup_class(cls): # NB. we should ideally py.test.skip() if running on an old linux diff --git a/pypy/module/signal/test/test_signal.py b/pypy/module/signal/test/test_signal.py --- a/pypy/module/signal/test/test_signal.py +++ b/pypy/module/signal/test/test_signal.py @@ -8,7 +8,7 @@ def setup_class(cls): if not hasattr(os, 'kill') or not hasattr(os, 'getpid'): py.test.skip("requires os.kill() and os.getpid()") - if not hasattr(cpy_signal, 'SIGUSR1'): + if not hasattr(cpy_signal, 'SIGUSR1'): py.test.skip("requires SIGUSR1 in signal") def test_checksignals(self): @@ -35,7 +35,9 @@ class AppTestSignal: - spaceconfig = dict(usemodules=['signal']) + spaceconfig = { + "usemodules": ['signal', 'rctime'], + } def setup_class(cls): cls.w_signal = cls.space.getbuiltinmodule('signal') @@ -52,7 +54,7 @@ if not hasattr(os, 'kill') or not hasattr(os, 'getpid'): skip("requires os.kill() and os.getpid()") signal = self.signal # the signal module to test - if not hasattr(signal, 'SIGUSR1'): + if not hasattr(signal, 'SIGUSR1'): py.test.skip("requires SIGUSR1 in signal") signum = signal.SIGUSR1 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit