From 0763a8f785a5dc1dcfc806c3306856aeff7ac0ad Mon Sep 17 00:00:00 2001
From: Jan Buethe <jbuethe@amazon.de>
Date: Sat, 22 Jul 2023 14:45:43 -0700
Subject: [PATCH] replaces multiprocessing module by multiprocess module in
 testsuite

---
 dnn/torch/testsuite/requirements.txt | 3 ++-
 dnn/torch/testsuite/run_test.py      | 5 +----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/dnn/torch/testsuite/requirements.txt b/dnn/torch/testsuite/requirements.txt
index 2ee4220d4..af2d99161 100644
--- a/dnn/torch/testsuite/requirements.txt
+++ b/dnn/torch/testsuite/requirements.txt
@@ -8,4 +8,5 @@ soundfile
 pyyaml
 pesq
 AMFM_decompy
-matplotlib
\ No newline at end of file
+matplotlib
+multiprocess
\ No newline at end of file
diff --git a/dnn/torch/testsuite/run_test.py b/dnn/torch/testsuite/run_test.py
index a397a464b..38ca8122b 100644
--- a/dnn/torch/testsuite/run_test.py
+++ b/dnn/torch/testsuite/run_test.py
@@ -1,7 +1,5 @@
-
-from genericpath import isfile
 import os
-import multiprocessing
+import multiprocess as multiprocessing
 import random
 import subprocess
 import argparse
@@ -26,7 +24,6 @@ parser.add_argument('--num-workers', type=int, help="number of subprocesses to b
 parser.add_argument('--plc-suffix', type=str, default="_is_lost.txt", help="suffix of plc error pattern file: only relevant if command chain uses PLCFILE (default=_is_lost.txt)")
 parser.add_argument('--metrics', type=str, default='warpq', help='comma separated string of metrics, supported: {{"warpq", "pesq"}}, default="warpq"')
 
-
 def check_for_sox_in_path():
     r = subprocess.run("sox -h", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
     return r.returncode == 0
-- 
GitLab