Merged revisions 64356 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Tue, 17 Jun 2008 22:43:48 +0000 (22:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 17 Jun 2008 22:43:48 +0000 (22:43 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r64356 | benjamin.peterson | 2008-06-17 17:40:44 -0500 (Tue, 17 Jun 2008) | 1 line

  skip test_multiprocessing when /dev/shm doesn't exist. This seems to be a chroot problem in the buildbot env.
........

Lib/test/test_multiprocessing.py

index 4b36efed148ac9e46c0ca5d8c040e84084a93088..14341be7b07c2683ee55c71cae6fa1794e9763c0 100644 (file)
@@ -1755,6 +1755,9 @@ globals().update(testcases_threads)
 #
 
 def test_main(run=None):
+    if sys.platform.startswith("linux") and not os.path.exists("/dev/shm"):
+        raise TestSkipped("Missing required /dev/shm device on Linux!")
+
     if run is None:
         from test.support import run_unittest as run