Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r9y9 committed Nov 18, 2023
1 parent e8955a6 commit f8dfd5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_openjtalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ def test_userdic():
p = pyopenjtalk.g2p(text)
assert p != expected

with tempfile.NamedTemporaryFile(mode="w", encoding="utf-8", suffix=".csv") as f:
with tempfile.NamedTemporaryFile(
mode="w", encoding="utf-8", suffix=".csv", delete=False
) as f:
f.write("nnmn,,,1,名詞,一般,*,*,*,*,nnmn,ナナミン,ナナミン,1/4,*\n") #
f.write("GNU,,,1,名詞,一般,*,*,*,*,GNU,グヌー,グヌー,2/3,*\n")
f.flush()
f.close()

with tempfile.NamedTemporaryFile(
mode="w", encoding="utf-8", suffix=".dic"
Expand Down

0 comments on commit f8dfd5e

Please sign in to comment.