Fix error in loader.discover() call

There is no argument "top_level" available. This causes an
error while using the plugin interface.

Change-Id: Id628b68b651144a08ca263dd0dc056987b108e69
Closes-Bug: #1474685
changes/41/201941/1
Marc Koderer 2015-07-15 08:31:30 +02:00
parent b5b118fb20
commit 704f3441de
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ def load_tests(loader, tests, pattern):
for plugin in plugin_load_tests:
test_dir, top_path = plugin_load_tests[plugin]
if not pattern:
suite.addTests(loader.discover(test_dir, top_level=top_path))
suite.addTests(loader.discover(test_dir, top_level_dir=top_path))
else:
suite.addTests(loader.discover(test_dir, pattern=pattern,
top_level=top_path))
top_level_dir=top_path))
return suite