From 2a72de6eb18a61f7711683c5bd243923f7ffe364 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 20 May 2008 16:07:23 +0000 Subject: Fix unit test capturing under Python 2.6. --- numpy/testing/numpytest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/testing/numpytest.py') diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py index 6a0e486aa..d58d9d01f 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -109,6 +109,8 @@ class _dummy_stream: self.data.append(message) def writeln(self,message): self.write(message+'\n') + def flush(self): + self.stream.flush() class NumpyTestCase (unittest.TestCase): -- cgit v1.2.1