Skip to content

Commit 7b3df52

Browse files
authored
Update plugin.py
1 parent fb693c6 commit 7b3df52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def install(package: str):
3333
for dataset_name, item in wn.config.index.items()
3434
if item.get("language")
3535
}
36-
if "PYTEST_CURRENT_TEST" in os.environ:
36+
if not any(re.findall(r"pytest|py.test", sys.argv[0])):
3737
ARTEFACT_NAME = LANGUAGE_TO_WORDNET_ARTEFACT["mul"]
3838
else:
3939
ARTEFACT_NAME = LANGUAGE_TO_WORDNET_ARTEFACT.get(

0 commit comments

Comments
 (0)