[py-svn] r34925 - py/dist/py/test/rsession/testing
guido at codespeak.net
guido at codespeak.net
Thu Nov 23 23:35:32 CET 2006
Author: guido
Date: Thu Nov 23 23:35:30 2006
New Revision: 34925
Modified:
py/dist/py/test/rsession/testing/test_lsession.py
Log:
Skipping tests that test forking code on platforms that don't have os.fork.
Modified: py/dist/py/test/rsession/testing/test_lsession.py
==============================================================================
--- py/dist/py/test/rsession/testing/test_lsession.py (original)
+++ py/dist/py/test/rsession/testing/test_lsession.py Thu Nov 23 23:35:30 2006
@@ -68,6 +68,8 @@
assert str(tb[0].source).find("execute") != -1
def test_normal(self):
+ if not hasattr(py.std.os, 'fork'):
+ py.test.skip('operating system not supported')
self.example_distribution(box_runner)
def test_plain(self):
@@ -103,6 +105,8 @@
assert len(l) == 1
def test_minus_x(self):
+ if not hasattr(py.std.os, 'fork'):
+ py.test.skip('operating system not supported')
tmpdir = tmp
tmpdir.ensure("sub2", "__init__.py")
tmpdir.ensure("sub2", "test_one.py").write(py.code.Source("""
@@ -138,6 +142,8 @@
assert len(failevents) == 1
def test_minus_k(self):
+ if not hasattr(py.std.os, 'fork'):
+ py.test.skip('operating system not supported')
tmpdir = tmp
tmpdir.ensure("sub3", "__init__.py")
tmpdir.ensure("sub3", "test_some.py").write(py.code.Source("""
@@ -225,6 +231,8 @@
def test_assert_reinterpret(self):
+ if not hasattr(py.std.os, 'fork'):
+ py.test.skip('operating system not supported')
tmpdir = tmp
tmpdir.ensure("sub6", "__init__.py")
tmpdir.ensure("sub6", "test_some.py").write(py.code.Source("""
More information about the pytest-commit
mailing list