From d3a063cc274f997d7dd4c805cfe16da500c1961c Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Tue, 3 Sep 2013 10:13:49 -0700 Subject: [PATCH] Remove most uses of ParametricTestCase --- IPython/utils/tests/test_io.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IPython/utils/tests/test_io.py b/IPython/utils/tests/test_io.py index 221fdb427..2ece06818 100644 --- a/IPython/utils/tests/test_io.py +++ b/IPython/utils/tests/test_io.py @@ -17,10 +17,10 @@ import sys from StringIO import StringIO from subprocess import Popen, PIPE +import unittest import nose.tools as nt -from IPython.testing.ipunittest import ParametricTestCase from IPython.utils.io import Tee, capture_output from IPython.utils.py3compat import doctest_refactor_print @@ -38,7 +38,7 @@ def test_tee_simple(): nt.assert_equal(chan.getvalue(), text+"\n") -class TeeTestCase(ParametricTestCase): +class TeeTestCase(unittest.TestCase): def tchan(self, channel, check='close'): trap = StringIO() @@ -61,7 +61,7 @@ class TeeTestCase(ParametricTestCase): def test(self): for chan in ['stdout', 'stderr']: for check in ['close', 'del']: - yield self.tchan(chan, check) + self.tchan(chan, check) def test_io_init(): """Test that io.stdin/out/err exist at startup"""