tests: fix 'extra' tests loader

QubesOS/qubes-issues#1800
This commit is contained in:
Marek Marczykowski-Górecki 2016-05-02 00:18:37 +02:00
parent 62e68d52a3
commit edd473c4be
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -73,7 +73,7 @@ class ExtraTestMixin(qubes.tests.SystemTestsMixin):
def load_tests(loader, tests, pattern):
for entry in pkg_resources.iter_entry_points('qubes.tests.extra'):
for test_case in entry():
for test_case in entry.load()():
tests.addTests(loader.loadTestsFromTestCase(
type(
entry.name + '_' + test_case.__name__,