Skip to content

Commit

Permalink
bugfix: Skip PyAudio tests on WIndows
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Nov 5, 2024
1 parent 1fb4c0c commit 5cc9cee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_microphone.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import sys
from unittest.mock import patch

import pytest

from speech_recognition.microphone import PyAudioWrapper


@pytest.mark.skip(sys.platform.startswith("win"), "skip on Windows")
class TestPyAudioWrapper:
@patch("pyaudio.PyAudio")
def test_get_pyaudio(self, PyAudio):
Expand Down

0 comments on commit 5cc9cee

Please sign in to comment.