Updated python patch to allow the test_fileio.py test to work on Haiku.

This commit is contained in:
Scott McCreary
2012-07-30 20:41:36 +00:00
parent 95eaa83233
commit c80b6b79ee

View File

@@ -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)