@@ -583,13 +583,13 @@ def test_normalize_manifests(self):
583
583
def test_build_one (self ):
584
584
d = tempfile .mkdtemp ()
585
585
src_path = os .path .join (d , 'test' )
586
- test_source_path = lambda * path : normalize_path (
587
- os . path . join ( d , 'test' , * path )
588
- )
589
- replace_source_path = lambda s , name : s . replace (
590
- 'SOURCE' ,
591
- test_source_path (name )
592
- )
586
+
587
+ def test_source_path ( * path ):
588
+ return normalize_path ( os . path . join ( d , 'test' , * path ) )
589
+
590
+ def replace_source_path ( s , name ):
591
+ return s . replace ( 'SOURCE' , test_source_path (name ) )
592
+
593
593
try :
594
594
shutil .copytree ('test' , src_path )
595
595
m = Manifest (sass_path = 'test' , css_path = 'css' )
@@ -921,7 +921,10 @@ def test_error(self):
921
921
class SassFunctionTest (unittest .TestCase ):
922
922
923
923
def test_from_lambda (self ):
924
- lambda_ = lambda abc , d : None
924
+ # Hack for https://gitlab.com/pycqa/flake8/issues/117
925
+ def noop (x ):
926
+ return x
927
+ lambda_ = noop (lambda abc , d : None )
925
928
sf = sass .SassFunction .from_lambda ('func_name' , lambda_ )
926
929
self .assertEqual ('func_name' , sf .name )
927
930
self .assertEqual (('$abc' , '$d' ), sf .arguments )
0 commit comments