From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@debian.org>
Date: Sun, 4 Mar 2012 17:08:28 +0100
Subject: feature forwarded upstream fix FTBFS on Hurd and KFreeBSD

 - on kfreebsd /dev/shm is N/A
 - on Hurd -- inter-process semaphore locking is N/A
---
 numexpr/tests/test_numexpr.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

--- a/numexpr/tests/test_numexpr.py
+++ b/numexpr/tests/test_numexpr.py
@@ -727,6 +727,7 @@
 
 def suite():
     import unittest
+    import platform as pl
 
     theSuite = unittest.TestSuite()
     niter = 1
@@ -754,7 +755,11 @@
         theSuite.addTest(
             unittest.makeSuite(test_irregular_stride) )
         theSuite.addTest(unittest.makeSuite(test_zerodim))
-        theSuite.addTest(unittest.makeSuite(test_subprocess))
+
+        # multiprocessing module is not supported on Hurd/kFreeBSD
+        if (pl.system().lower() not in ('gnu', 'gnu/kfreebsd')):
+            theSuite.addTest(unittest.makeSuite(test_subprocess))
+
         # I need to put this test after test_subprocess because
         # if not, the test suite locks immediately before test_subproces.
         # This only happens with Windows, so I suspect of a subtle bad
