diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-06 12:00:37 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-06 12:00:37 +0100 |
commit | ee458708664177dc7bcf102b91aef87f7806ce31 (patch) | |
tree | a0263b99cbc987637638e3dc6a5e2048b0078f88 /test | |
parent | 2ea3e311326ae7341a669205413693b170c3d474 (diff) | |
download | logilab-common-ee458708664177dc7bcf102b91aef87f7806ce31.tar.gz |
cleanup: remove more deprecated stuff
remove OutErrCaptureTC and captured_output
more explicit deprecated warning for special assert methods
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest_testlib.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/unittest_testlib.py b/test/unittest_testlib.py index fb174ff..3a12159 100644 --- a/test/unittest_testlib.py +++ b/test/unittest_testlib.py @@ -76,8 +76,6 @@ class UtilTC(TestCase): class TestlibTC(TestCase): - capture = True - def mkdir(self, path): if not exists(path): self._dirs.add(path) @@ -607,34 +605,6 @@ class TestLoaderTC(TestCase): self.assertRunCount(None, MyMod, 2) -class OutErrCaptureTC(TestCase): - - def setUp(self): - sys.stdout = sys.stderr = StringIO() - self.runner = SkipAwareTextTestRunner(stream=StringIO(), exitfirst=True, capture=True) - - def tearDown(self): - sys.stdout = sys.__stdout__ - sys.stderr = sys.__stderr__ - - - def test_unicode_non_ascii_messages(self): - class FooTC(TestCase): - def test_xxx(self): - raise Exception(u'\xe9') - test = FooTC('test_xxx') - # run the test and make sure testlib doesn't raise an exception - result = self.runner.run(test) - - def test_encoded_non_ascii_messages(self): - class FooTC(TestCase): - def test_xxx(self): - raise Exception('\xe9') - test = FooTC('test_xxx') - # run the test and make sure testlib doesn't raise an exception - result = self.runner.run(test) - - class DecoratorTC(TestCase): @with_tempdir |