File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 10
10
from runner import path_to_enlightenment
11
11
12
12
from libs .colorama import init , Fore , Style
13
+ init () # init colorama
13
14
14
15
class Sensei (MockableTestResult ):
15
16
def __init__ (self , stream ):
@@ -239,6 +240,8 @@ def total_koans(self):
239
240
def filter_all_lessons (self ):
240
241
if not self .all_lessons :
241
242
self .all_lessons = glob .glob ('koans/about*.py' )
242
- self .all_lessons .remove ('koans/about_extra_credit.py' )
243
-
243
+ self .all_lessons = filter (lambda filename :
244
+ "about_extra_credit" not in filename ,
245
+ self .all_lessons )
246
+
244
247
return self .all_lessons
Original file line number Diff line number Diff line change 10
10
from runner import path_to_enlightenment
11
11
12
12
from libs .colorama import init , Fore , Style
13
+ init () # init colorama
13
14
14
15
class Sensei (MockableTestResult ):
15
16
def __init__ (self , stream ):
@@ -239,6 +240,8 @@ def total_koans(self):
239
240
def filter_all_lessons (self ):
240
241
if not self .all_lessons :
241
242
self .all_lessons = glob .glob ('koans/about*.py' )
242
- self .all_lessons .remove ('koans/about_extra_credit.py' )
243
+ self .all_lessons = list (filter (lambda filename :
244
+ "about_extra_credit" not in filename ,
245
+ self .all_lessons ))
243
246
244
- return self .all_lessons
247
+ return self .all_lessons
You can’t perform that action at this time.
0 commit comments