Tobias Oberstein  committed 3da8ca8

Enable kqueue on all BSDish platforms.

  • Participants
  • Parent commits 1205ef1
  • Branches kqueue

Comments (0)

Files changed (2)

File pypy/module/select/

             if value is not None:
                 interpleveldefs[symbol] = "space.wrap(%r)" % value
-    if sys.platform.startswith('freebsd') or sys.platform.startswith('darwin'):
+    if 'bsd' in sys.platform or sys.platform.startswith('darwin'):
         interpleveldefs["kqueue"] = "interp_kqueue.W_Kqueue"
         interpleveldefs["kevent"] = "interp_kqueue.W_Kevent"
         from import symbol_map

File pypy/module/select/test/

 class AppTestKqueue(object):
     def setup_class(cls):
-        if not sys.platform.startswith('freebsd') and \
+        if not 'bsd' in sys.platform and \
            not sys.platform.startswith('darwin'):
             py.test.skip("test requires BSD") = gettestobjspace(usemodules=["select", "_socket", "posix"])