diff options
| author | Martin <gzlist@googlemail.com> | 2011-04-27 02:27:48 +0100 |
|---|---|---|
| committer | Martin <gzlist@googlemail.com> | 2011-04-27 02:27:48 +0100 |
| commit | 1d41987d8fb9da38eea2e99c4f41c0840194ef0f (patch) | |
| tree | 43584e3f14da62267e1ac787ee308ab27ccdc574 /python/subunit/tests | |
| parent | 5a28b540845585f07ec1f10b96305c77f63104dd (diff) | |
| download | subunit-git-1d41987d8fb9da38eea2e99c4f41c0840194ef0f.tar.gz | |
Skip os.fork tests on non-posix systems, by switching to testtools testcases there
Diffstat (limited to 'python/subunit/tests')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index d8af230..1b1aa1d 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -21,6 +21,7 @@ import os from testtools.compat import _b, _u, BytesIO, StringIO from testtools.content import Content, TracebackContent from testtools.content_type import ContentType +from testtools.testcase import skipIf, TestCase from testtools.tests.helpers import ( Python26TestResult, Python27TestResult, @@ -922,7 +923,7 @@ class DoExecTestCase(subunit.ExecTestCase): """sample-two-script.py""" -class TestIsolatedTestCase(unittest.TestCase): +class TestIsolatedTestCase(TestCase): class SampleIsolatedTestCase(subunit.IsolatedTestCase): @@ -943,6 +944,7 @@ class TestIsolatedTestCase(unittest.TestCase): def test_construct(self): self.SampleIsolatedTestCase("test_sets_global_state") + @skipIf(os.name != "posix", "Need a posix system for forking tests") def test_run(self): result = unittest.TestResult() test = self.SampleIsolatedTestCase("test_sets_global_state") @@ -958,7 +960,7 @@ class TestIsolatedTestCase(unittest.TestCase): #test.debug() -class TestIsolatedTestSuite(unittest.TestCase): +class TestIsolatedTestSuite(TestCase): class SampleTestToIsolate(unittest.TestCase): @@ -979,6 +981,7 @@ class TestIsolatedTestSuite(unittest.TestCase): def test_construct(self): subunit.IsolatedTestSuite() + @skipIf(os.name != "posix", "Need a posix system for forking tests") def test_run(self): result = unittest.TestResult() suite = subunit.IsolatedTestSuite() |
