mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 18:53:21 +01:00
[tests] fail when a results file contains syntax errors
or is otherwise not importable
This commit is contained in:
parent
085411f3f1
commit
caceb14fc2
@ -13,12 +13,8 @@ __directory__ = os.path.dirname(__file__)
|
|||||||
|
|
||||||
@functools.lru_cache(maxsize=None)
|
@functools.lru_cache(maxsize=None)
|
||||||
def tests(name):
|
def tests(name):
|
||||||
try:
|
|
||||||
module = __import__(name, globals(), None, (), 1)
|
module = __import__(name, globals(), None, (), 1)
|
||||||
return module.__tests__
|
return module.__tests__
|
||||||
except Exception as exc:
|
|
||||||
print(exc)
|
|
||||||
return ()
|
|
||||||
|
|
||||||
|
|
||||||
def all():
|
def all():
|
||||||
|
Loading…
Reference in New Issue
Block a user