diff -r 2753aad79678 -r e46fa477007b testsuite.py --- a/testsuite.py Fri May 24 14:20:18 2019 +0200 +++ b/testsuite.py Fri May 24 15:32:10 2019 +0300 @@ -17,6 +17,12 @@ def notice(bad_object, error_name, **args): return report_element(bad_object, 'notice', error_name, args) +def name_of_package(package): + if isinstance(package, tuple): + return package[1] + else: + return package.name + def test_discovery(): ''' Finds all test modules and yields their names. @@ -24,7 +30,7 @@ from pkgutil import walk_packages import tests yield from sorted( - 'tests.' + result.name + 'tests.' + name_of_package(result) for result in walk_packages(tests.__path__) )