Commits

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/__init__.py

             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 pypy.module.select.interp_kqueue import symbol_map

File pypy/module/select/test/test_kqueue.py

 
 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")
         cls.space = gettestobjspace(usemodules=["select", "_socket", "posix"])