Skip to content
Snippets Groups Projects
Commit 76cb91fa authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

removed unit tests for PyPy

parent f439ea95
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ "3.7", "3.8", "pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12" ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@main
......
......@@ -47,7 +47,7 @@ def must_be_loaded(fun):
assert isinstance(self,
Loadable), 'must_be_loaded called with a class that does not subclass ' \
'Loadable'
if not self._loaded:
if not self._loaded: # pylint disable:protected-access
self.refresh()
return fun(self, *args, **kwargs)
......
......@@ -34,9 +34,9 @@ def safe_listdir(directory: str) -> tp.Iterator[str]:
"""
Return elements of directory.
Retuns nothing if directory does not exist, or is not a directory.
Returns nothing (an empty iterator) if directory does not exist, or is not a directory.
:param directory: path to the element.
:param directory: path to the element to examine.
"""
try:
yield from os.listdir(directory)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment