8000 FIX: Mark a tests knownfail on Hurd · numpy/numpy@f6cab0a · GitHub
[go: up one dir, main page]

Skip to content

Commit f6cab0a

Browse files
committed
FIX: Mark a tests knownfail on Hurd
Fixes gh-415. This test raises "Function not implemented" on Hurd: ====================================================================== ERROR: test_flush (test_memmap.TestMemmap) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/buildd-python-numpy_1.7.0~b2-1-hurd-i386-Ws9GSv/python-numpy-1.7.0~b2/debian/tmp/usr/lib/python3/dist-packages/numpy/core/tests/test_memmap.py", line 72, in test_flush fp.flush() File "/build/buildd-python-numpy_1.7.0~b2-1-hurd-i386-Ws9GSv/python-numpy-1.7.0~b2/debian/tmp/usr/lib/python3/dist-packages/numpy/core/memmap.py", line 301, in flush self.base.flush() mmap.error: [Errno 1073741902] Function not implemented Which seems like a Hurd issue: http://web.archiveorange.com/archive/v/dpz3Spjqy0ESHmXKVt7c http://lists.gnu.org/archive/html/bug-hurd/2002-11/msg00243.html So we mark it as knownfail on that platform.
1 parent ddb7156 commit f6cab0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

numpy/core/tests/test_memmap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from tempfile import NamedTemporaryFile, mktemp
23
import os
34

@@ -64,6 +65,7 @@ def test_filename_fileobj(self):
6465
shape=self.shape)
6566
self.assertEqual(fp.filename, self.tmpfp.name)
6667

68+
@dec.knownfailureif(sys.platform=='gnu0', "This test is known to fail on hurd")
6769
def test_flush(self):
6870
fp = memmap(self.tmpfp, dtype=self.dtype, mode='w+',
6971
shape=self.shape)

0 commit comments

Comments
 (0)
0