We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c66d44 commit 158b936Copy full SHA for 158b936
python2/runner/mountain.py
@@ -13,14 +13,14 @@ def __init__(self):
13
self.stream = WritelnDecorator(sys.stdout)
14
self.tests = path_to_enlightenment.koans()
15
self.lesson = Sensei(self.stream)
16
-
+
17
def walk_the_path(self, args=None):
18
"Run the koans tests with a custom runner output."
19
20
if args and len(args) >=2:
21
- args.pop(0)
22
- for arg in args:
23
- self.tests = unittest.TestLoader().loadTestsFromName("koans." + arg)
24
- self.tests(self.lesson)
25
- self.lesson.learn()
+ args.pop(0)
+ test_names = ["koans." + test_name for test_name in args]
+ self.tests = unittest.TestLoader().loadTestsFromNames(test_names)
+ self.tests(self.lesson)
+ self.lesson.learn()
26
return self.lesson
0 commit comments