diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-20 16:07:23 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-20 16:07:23 +0000 |
commit | 2a72de6eb18a61f7711683c5bd243923f7ffe364 (patch) | |
tree | 9f62bdbd44df34f429dd2ffabbd86cfe7b0d7297 /numpy/testing/numpytest.py | |
parent | aa4bc9eb83d61f4c6bf62cf09c986ec11d8106df (diff) | |
download | numpy-2a72de6eb18a61f7711683c5bd243923f7ffe364.tar.gz |
Fix unit test capturing under Python 2.6.
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r-- | numpy/testing/numpytest.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): |