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

Add tests for HTSLabelFile #115

Merged
merged 4 commits into from
Aug 10, 2021
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
fix windows CI
  • Loading branch information
r9y9 committed Aug 10, 2021
commit e998b5171d5aada96051355cc3d7485e9034e175
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def package_files(directory):
tests_require=["nose", "coverage"],
extras_require={
"docs": ["numpydoc", "sphinx_rtd_theme"],
"test": ["nose", "pyworld", "librosa", "pyopenjtalk"],
"test": ["nose", "pyworld", "librosa"],
"lint": [
"pysen",
"types-setuptools",
Expand Down
5 changes: 4 additions & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import re
from os.path import dirname, join

import pyopenjtalk
from nnmnkwii.frontend import merlin as fe
from nnmnkwii.io import hts
from nnmnkwii.util import example_question_file
Expand Down Expand Up @@ -229,6 +228,10 @@ def test_empty_context():

@raises(ValueError)
def test_empty_context2():
try:
import pyopenjtalk
except ImportError:
return
contexts = pyopenjtalk.extract_fullcontext("")
hts.HTSLabelFile.create_from_contexts(contexts)

Expand Down