Skip to content

Commit

Permalink
@unittest.skipIf(sys.platform == "darwin", "skip on macOS")
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Dec 9, 2024
1 parent 971b484 commit e7eee66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
[options]
install_requires =
audioop-lts;python_version>='3.13'
setuptools;python_version>='3.13'
standard-aifc;python_version>='3.13'
typing-extensions

[options.extras_require]
dev =
flake8
Expand Down
1 change: 1 addition & 0 deletions tests/test_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def test_recognizer_attributes(self):
# https://github.com/Uberi/speech_recognition/issues/743
self.assertTrue("recognize_google" in attributes)

@unittest.skipIf(sys.platform == "darwin", "skip on macOS")
@unittest.skipIf(sys.platform.startswith("win"), "skip on Windows")
def test_sphinx_english(self):
r = sr.Recognizer()
Expand Down
1 change: 1 addition & 0 deletions tests/test_special_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def setUp(self):
self.AUDIO_FILE_EN = os.path.join(os.path.dirname(os.path.realpath(__file__)), "english.wav")
self.addTypeEqualityFunc(str, self.assertSameWords)

@unittest.skipIf(sys.platform == "darwin", "skip on macOS")
@unittest.skipIf(sys.platform.startswith("win"), "skip on Windows")
def test_sphinx_keywords(self):
r = sr.Recognizer()
Expand Down

0 comments on commit e7eee66

Please sign in to comment.