Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run unittests on Windows in CI #746

Merged
merged 6 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[bugfix] Confuse with skipIf
  • Loading branch information
ftnext committed Apr 16, 2024
commit f1e6a84f4525fe6929688f9f3934dc6b2de33d51
2 changes: 1 addition & 1 deletion tests/test_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_recognizer_attributes(self):
self.assertEqual(r.phrase_threshold, 0.3)
self.assertEqual(r.non_speaking_duration, 0.5)

@unittest.skip(sys.platform.startswith("win"), "skip on Windows")
@unittest.skipIf(sys.platform.startswith("win"), "skip on Windows")
def test_sphinx_english(self):
r = sr.Recognizer()
with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_special_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +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.skip(sys.platform.startswith("win"), "skip on Windows")
@unittest.skipIf(sys.platform.startswith("win"), "skip on Windows")
def test_sphinx_keywords(self):
r = sr.Recognizer()
with sr.AudioFile(self.AUDIO_FILE_EN) as source: audio = r.record(source)
Expand Down
Loading