Skip to content

Commit

Permalink
support MAC OS process
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkcl committed Oct 9, 2023
1 parent 8f47505 commit 2bfdafb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doajtest/selenium_helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
import logging
import time
from multiprocessing import Process
from multiprocessing import Process, freeze_support
from typing import TYPE_CHECKING

import selenium
Expand Down Expand Up @@ -83,6 +83,7 @@ def find_eles_by_css(self, css_selector: str) -> 'WebElement':
def setUp(self):
super().setUp()

freeze_support()
self.doaj_process = Process(target=_run_doaj_server, daemon=True)
self.doaj_process.start()

Expand Down

0 comments on commit 2bfdafb

Please sign in to comment.