From cf1dd92963ab2890342123d7ddf6e1327c9b37e0 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Tue, 31 Dec 2024 05:26:15 +0330 Subject: [PATCH] fix recent bug in glossary.py --- pyglossary/glossary.py | 3 ++- scripts/test.sh | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pyglossary/glossary.py b/pyglossary/glossary.py index f01c87642..d2ca43921 100644 --- a/pyglossary/glossary.py +++ b/pyglossary/glossary.py @@ -110,11 +110,12 @@ def read( self._progressbar = progressbar - return self._read( + self._read( filename=filename, direct=direct, **kwargs, ) + return True def addEntryObj(self, entry: EntryType) -> None: self._data.append(entry) diff --git a/scripts/test.sh b/scripts/test.sh index 69061d3de..6873ca2b9 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -6,11 +6,11 @@ rootDirAbs=$(realpath $rootDir) echo "$rootDir/tests" cd "$rootDir/tests" -# # python -m unittest *_test.py -# for F in *_test.py; do -# echo "$F" -# python -m unittest "$F" -# done +# python -m unittest *_test.py +for F in *_test.py; do + echo "$F" + python -m unittest "$F" +done echo "$rootDirAbs/tests/deprecated/" cd "$rootDirAbs/tests/deprecated/"