From c80b6b79eec68ca530a966c1a74ee4f077cae4b3 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Mon, 30 Jul 2012 20:41:36 +0000 Subject: [PATCH] Updated python patch to allow the test_fileio.py test to work on Haiku. --- dev-lang/python/patches/python-2.6.7.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev-lang/python/patches/python-2.6.7.patch b/dev-lang/python/patches/python-2.6.7.patch index 76037312b..aab2a356e 100644 --- a/dev-lang/python/patches/python-2.6.7.patch +++ b/dev-lang/python/patches/python-2.6.7.patch @@ -556,3 +556,13 @@ diff -urN Python-2.6.7/setup.py Python-2.6.7-haiku/setup.py find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None): if (self.compiler.find_library_file(lib_dirs, 'nsl')): libs = ['nsl'] +--- Python-2.6.7/Lib/test/test_fileio.py 2012-07-26 23:04:42.208666624 +0000 ++++ Python-2.6.7-haiku/Lib/test/test_fileio.py 2012-07-26 23:05:09.382730240 +0000 +@@ -152,6 +152,7 @@ + self.assertEquals(f.writable(), True) + if sys.platform != "darwin" and \ + 'bsd' not in sys.platform and \ ++ 'haiku' not in sys.platform and \ + not sys.platform.startswith('sunos'): + # Somehow /dev/tty appears seekable on some BSDs + self.assertEquals(f.seekable(), False)