Merge pull request #4165 from takluyver/parametric-begone

Remove use of parametric tests

As discussed on the mailing list, our parametric tests system has been the source of various problems, and we've decided to get rid of it.
This commit is contained in:
Min RK 2013-09-04 10:35:31 -07:00
commit 8fd42ab815

View File

@ -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"""