mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Replace use of deprecated API
This commit is contained in:
parent
82e7344a63
commit
074bdd3330
@ -53,7 +53,7 @@ class TestResult(unittest.TextTestResult):
|
||||
|
||||
|
||||
def find_tests_in_package(package, excludes=('main.py',)):
|
||||
items = list(importlib.resources.contents(package))
|
||||
items = [path.name for path in importlib.resources.files(package).iterdir()]
|
||||
suits = []
|
||||
excludes = set(excludes) | {x + 'c' for x in excludes}
|
||||
seen = set()
|
||||
|
Loading…
x
Reference in New Issue
Block a user