@@ -1340,7 +1340,7 @@ def test_make_module_step(self):
13401340 if get_module_syntax () == 'Tcl' :
13411341 regex = re .compile (r'^prepend-path\s+(-d ".")?%s\s+\$root/%s$' % (key , val ), re .M )
13421342 elif get_module_syntax () == 'Lua' :
1343- regex = re .compile (r'^prepend_path\("%s", pathJoin\(root, "%s"\)(, ".")\)$' % (key , val ), re .M )
1343+ regex = re .compile (r'^prepend_path\("%s", pathJoin\(root, "%s"\)(, ".")? \)$' % (key , val ), re .M )
13441344 else :
13451345 self .fail ("Unknown module syntax: %s" % get_module_syntax ())
13461346 self .assertTrue (regex .search (txt ), "Pattern %s found in %s" % (regex .pattern , txt ))
@@ -1355,7 +1355,7 @@ def test_make_module_step(self):
13551355 if get_module_syntax () == 'Tcl' :
13561356 regex = re .compile (r'^append-path\s+(-d ".")?%s\s+\$root/%s$' % (key , val ), re .M )
13571357 elif get_module_syntax () == 'Lua' :
1358- regex = re .compile (r'^append_path\("%s", pathJoin\(root, "%s"\)(, ".")\)$' % (key , val ), re .M )
1358+ regex = re .compile (r'^append_path\("%s", pathJoin\(root, "%s"\)(, ".")? \)$' % (key , val ), re .M )
13591359 else :
13601360 self .fail ("Unknown module syntax: %s" % get_module_syntax ())
13611361 self .assertTrue (regex .search (txt ), "Pattern %s found in %s" % (regex .pattern , txt ))
0 commit comments