diff --git a/testing/adios2/engine/dataman/TestDataMan1D.py b/testing/adios2/engine/dataman/TestDataMan1D.py index 8b8aac928f..016b496fa8 100644 --- a/testing/adios2/engine/dataman/TestDataMan1D.py +++ b/testing/adios2/engine/dataman/TestDataMan1D.py @@ -6,7 +6,7 @@ # TestDataMan1D.py: test for 1D data transfer by reading in Python # Created on: March 3, 2023 # Author: Dmitry Ganyushin ganyushindi@ornl.gov -from multiprocessing import Process +import multiprocessing import unittest import numpy as np import adios2 @@ -28,8 +28,8 @@ def setUp(self): def test_run(self): - s = Process(target=self.thread_send) - r = Process(target=self.thread_receive) + s = multiprocessing.Process(target=self.thread_send) + r = multiprocessing.Process(target=self.thread_receive) s.start() r.start() @@ -88,4 +88,5 @@ def thread_receive(self): if __name__ == '__main__': + multiprocessing.set_start_method("fork") unittest.main()