mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 20:30:24 +03:00
add check for None
This commit is contained in:
parent
a4248984e0
commit
d56139b082
|
@ -1204,6 +1204,7 @@ def test_walk_directory():
|
|||
Path(d / f).touch()
|
||||
|
||||
assert (len(walk_directory(d))) == 7
|
||||
assert (len(walk_directory(d, suffix=None))) == 7
|
||||
assert (len(walk_directory(d, suffix="json"))) == 1
|
||||
assert (len(walk_directory(d, suffix="iob"))) == 2
|
||||
assert (len(walk_directory(d, suffix="conll"))) == 3
|
||||
|
|
Loading…
Reference in New Issue
Block a user