@@ -59,7 +59,7 @@ def substring_match(test_name):
5959 if 1 in in_out_seen :
6060 return False
6161 return - 1 in in_out_seen
62- test_embed = substring_match ("test_embed " )
62+ test_with_catch = substring_match ("test_with_catch " )
6363 list_of_test_py = []
6464 for test_py in all_test_py :
6565 if substring_match (test_py ):
@@ -70,7 +70,7 @@ def substring_match(test_name):
7070 "Unused command-line argument%s: %s" % (
7171 plural_s (len (substring_unused )),
7272 " " .join (sorted (substring_unused ))))
73- return test_embed , list_of_test_py
73+ return test_with_catch , list_of_test_py
7474
7575
7676def plural_s (num , suffix = "s" ):
@@ -133,15 +133,15 @@ def run(args):
133133 substrings .add (arg )
134134 assert pybind11_dirpath is not None
135135 tests_dirpath = os .path .join (pybind11_dirpath , "tests" )
136- test_embed_dirpath = os .path .join (tests_dirpath , "test_embed " )
137- test_embed , list_of_test_py = build_list_of_tests (tests_dirpath , substrings )
136+ test_with_catch_dirpath = os .path .join (tests_dirpath , "test_with_catch " )
137+ test_with_catch , list_of_test_py = build_list_of_tests (tests_dirpath , substrings )
138138 env = {"PYTHONPATH" : normabspath ("lib" )}
139- if test_embed :
140- bin_test_embed = normabspath ("bin/test_embed " )
139+ if test_with_catch :
140+ bin_test_with_catch = normabspath ("bin/test_with_catch " )
141141 print ('(cd "%s" && PATH= LD_LIBRARY_PATH= PYTHONPATH="%s" "%s")' % (
142- test_embed_dirpath , env ["PYTHONPATH" ], bin_test_embed ))
142+ test_with_catch_dirpath , env ["PYTHONPATH" ], bin_test_with_catch ))
143143 sys .stdout .flush ()
144- subprocess .call ([bin_test_embed ], cwd = test_embed_dirpath , env = env )
144+ subprocess .call ([bin_test_with_catch ], cwd = test_with_catch_dirpath , env = env )
145145 if i_opt :
146146 print ('Running %d individual test(s) in directory "%s":'
147147 % (len (list_of_test_py ), tests_dirpath ))
0 commit comments