From 5d1eac3e11313b38b842f0bc8d418797c0e25a67 Mon Sep 17 00:00:00 2001 From: Anthony Delosa Date: Mon, 24 Oct 2016 22:15:55 +1000 Subject: [PATCH] Merged in skip of tests containing os.fork for Window from windows _support branch. --- tests/test_postgresql.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py index b3603a2..9d25e84 100644 --- a/tests/test_postgresql.py +++ b/tests/test_postgresql.py @@ -116,6 +116,7 @@ def test_postgresql_is_not_found(self): testing.postgresql.SEARCH_PATHS = search_paths os.environ['PATH'] = path_env + @unittest.skipIf(os.name == 'nt', 'Windows does not have fork()') def test_fork(self): pgsql = testing.postgresql.Postgresql() if os.fork() == 0: @@ -127,6 +128,7 @@ def test_fork(self): sleep(1) self.assertTrue(pgsql.is_alive()) # process is alive (delete pgsql obj in child does not effect) + @unittest.skipIf(os.name == 'nt', 'Windows does not have fork()') def test_stop_on_child_process(self): pgsql = testing.postgresql.Postgresql() if os.fork() == 0: