summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@googlemail.com>2011-08-10 22:59:09 +0200
committerRalf Gommers <ralf.gommers@googlemail.com>2011-08-10 22:59:09 +0200
commit57b56bc6409f30039e59d5476feb675d2c279564 (patch)
tree033016b3cb8de6fc15043de82f3cac66e601d1b2 /numpy/lib/tests
parent26aa3cfa5bfa5f235bfbe5943c211a43af3d42f5 (diff)
downloadnumpy-57b56bc6409f30039e59d5476feb675d2c279564.tar.gz
BUG: fix failing npyio test under py3k. Thanks to Derek Homeier. Closes #1793.
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_io.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 18585375e..8bfb64cee 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -392,6 +392,7 @@ class TestLoadTxt(TestCase):
assert_array_equal(x, a)
def test_empty_file(self):
+ warnings.filterwarnings("ignore", message="loadtxt: Empty input file:")
c = StringIO()
x = np.loadtxt(c)
assert_equal(x.shape, (0,))