Skip to content

Commit

Permalink
fix: execstack
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Jan 4, 2024
1 parent 32f642d commit 3059b8c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/transcriber_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pathlib
import platform
import shutil
import sys
import tempfile
import time
from typing import List
Expand Down Expand Up @@ -158,9 +159,6 @@ def test_transcribe(
assert expected_segment.text in segments[i].text


@pytest.mark.skipif(
platform.system() == "Linux", reason="Avoid execstack errors on Snap"
)
class TestWhisperFileTranscriber:
@pytest.mark.parametrize(
"file_path,output_format,expected_file_path,default_output_file_name",
Expand Down Expand Up @@ -310,6 +308,9 @@ def test_default_output_file_with_date(
),
],
)
@pytest.mark.skipif(
sys.platform == "linux", reason="Avoid execstack errors on Snap"
)
def test_transcribe(
self,
qtbot: QtBot,
Expand Down Expand Up @@ -359,6 +360,9 @@ def test_transcribe(
assert len(segments[i].text) > 0
logging.debug(f"{segments[i].start} {segments[i].end} {segments[i].text}")

@pytest.mark.skipif(
sys.platform == "linux", reason="Avoid execstack errors on Snap"
)
def test_transcribe_from_folder_watch_source(self, qtbot):
file_path = tempfile.mktemp(suffix=".mp3")
shutil.copy("testdata/whisper-french.mp3", file_path)
Expand Down

0 comments on commit 3059b8c

Please sign in to comment.