Commit 491494f0 authored by Jan Kiene's avatar Jan Kiene
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent ac421d99
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -405,6 +405,8 @@ def compare(
        if get_mld:

            def parse_wav_diff(proc: subprocess.CompletedProcess) -> float:
                if proc.returncode:
                    raise ChildProcessError(f"{proc.stderr}\n{proc.stdout}")
                line = proc.stdout.splitlines()[-1].strip()
                start = line.find(">") + 1
                stop = line.rfind("<")
@@ -412,11 +414,6 @@ def compare(

                return mld

                # TODO probably needs a fix to show up in pytest
                if proc.returncode:
                    print(f"{proc.stderr}\n{proc.stdout}")
                return mld_max

            mld_max = 0
            toolsdir = Path(__file__).parent.parent.joinpath("tools")