[Numpy-svn] r5505 - branches/1.1.x/numpy/tests
numpy-svn at scipy.org
numpy-svn at scipy.org
Tue Jul 22 16:37:15 EDT 2008
Author: charris
Date: 2008-07-22 15:37:12 -0500 (Tue, 22 Jul 2008)
New Revision: 5505
Modified:
branches/1.1.x/numpy/tests/test_ctypeslib.py
Log:
Make skip message a simple 'S'.
Modified: branches/1.1.x/numpy/tests/test_ctypeslib.py
===================================================================
--- branches/1.1.x/numpy/tests/test_ctypeslib.py 2008-07-22 19:57:13 UTC (rev 5504)
+++ branches/1.1.x/numpy/tests/test_ctypeslib.py 2008-07-22 20:37:12 UTC (rev 5505)
@@ -1,6 +1,7 @@
import numpy as np
from numpy.ctypeslib import ndpointer, load_library
from numpy.testing import *
+import sys
class TestLoadLibrary(NumpyTestCase):
def check_basic(self):
@@ -8,9 +9,8 @@
cdll = load_library('multiarray',
np.core.multiarray.__file__)
except ImportError, e:
- msg = "ctypes is not available on this python: skipping the test" \
- " (import error was: %s)" % str(e)
- print msg
+ sys.stdout.write('S')
+ sys.stdout.flush()
def check_basic2(self):
"""Regression for #801: load_library with a full library name
@@ -22,11 +22,11 @@
cdll = load_library('multiarray%s' % so,
np.core.multiarray.__file__)
except ImportError:
- print "No distutils available, skipping test."
+ sys.stdout.write('S')
+ sys.stdout.flush()
except ImportError, e:
- msg = "ctypes is not available on this python: skipping the test" \
- " (import error was: %s)" % str(e)
- print msg
+ sys.stdout.write('S')
+ sys.stdout.flush()
class TestNdpointer(NumpyTestCase):
def check_dtype(self):
More information about the Numpy-svn
mailing list