Skip to content

Commit 129a7cf

Browse files
committed
Replace test_embed → test_with_catch (b/o pybind/pybind11#5824)
1 parent b22de2c commit 129a7cf

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

SConscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ env_base.Clone(
171171
LINKFLAGS=["-shared", "-fPIC"] + opt_opt,
172172
LIBPREFIX="").SharedLibrary(
173173
target="#lib/external_module",
174-
source=["#pybind11/tests/test_embed/external_module.cpp"])
174+
source=["#pybind11/tests/test_with_catch/external_module.cpp"])
175175

176176
env_base.Clone(
177177
CPPDEFINES=extra_defines,
@@ -182,9 +182,9 @@ env_base.Clone(
182182
LINKFLAGS=["-rdynamic", f"-Wl,-rpath,{python_libdir}"] + opt_opt,
183183
LIBPATH=["lib", python_libdir],
184184
LIBS=[python_lib, "pthread", "dl", "util"]).Program(
185-
target="#bin/test_embed",
185+
target="#bin/test_with_catch",
186186
source=build_paths_in_subdir(
187-
"#pybind11/tests/test_embed",
187+
"#pybind11/tests/test_with_catch",
188188
["test_interpreter.cpp",
189189
"catch.cpp"]))
190190

run_tests.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

7676
def 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

Comments
 (0)