Skip to content

Commit

Permalink
Merged in skip of tests containing os.fork for Window from windows _s…
Browse files Browse the repository at this point in the history
…upport branch.
  • Loading branch information
adelosa committed Oct 24, 2016
1 parent bf8b7c0 commit 5d1eac3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 5d1eac3

Please sign in to comment.