Skip to content

Commit fbf9a95

Browse files
committed
Revert "Rename test_exc_namespace_visibility.py back to test_namespace_visibility.py"
This reverts commit c5ad26c. Observation summarized here: pybind#4054 (comment) > ... the list of jobs that fail is still exactly like (... before)
1 parent c5ad26c commit fbf9a95

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ set(PYBIND11_TEST_FILES
148148
test_eigen
149149
test_enum
150150
test_eval
151+
test_exc_namespace_visibility.py
151152
test_exceptions
152153
test_factory_constructors
153154
test_gil_scoped
@@ -157,7 +158,6 @@ set(PYBIND11_TEST_FILES
157158
test_methods_and_attributes
158159
test_modules
159160
test_multiple_inheritance
160-
test_namespace_visibility.py
161161
test_numpy_array
162162
test_numpy_dtypes
163163
test_numpy_vectorize
@@ -237,7 +237,8 @@ tests_extra_targets("test_exceptions.py" "cross_module_interleaved_error_already
237237
tests_extra_targets("test_gil_scoped.py" "cross_module_gil_utils")
238238
tests_extra_targets("test_class_sh_module_local.py"
239239
"class_sh_module_local_0;class_sh_module_local_1;class_sh_module_local_2")
240-
tests_extra_targets("test_namespace_visibility.py" "namespace_visibility_1;namespace_visibility_2")
240+
tests_extra_targets("test_exc_namespace_visibility.py"
241+
"namespace_visibility_1;namespace_visibility_2")
241242

242243
set(PYBIND11_EIGEN_REPO
243244
"https://gitlab.com/libeigen/eigen.git"

tests/test_namespace_visibility.py renamed to tests/test_exc_namespace_visibility.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
# `-fvisibility=hidden` or `__attribute__((visibility("hidden")))`, or linking
55
# extensions statically with the core Python interpreter.
66

7+
# NOTE
8+
# ====
9+
# The "exc_" in "test_exc_namespace_visibility.py" is a workaround, to avoid a
10+
# test_cross_module_exception_translator (test_exceptions.py) failure. This
11+
# test has to be imported (by pytest) before test_exceptions.py; pytest sorts
12+
# lexically. See https://github.com/pybind/pybind11/pull/4054 for more information.
13+
714
import itertools
815

916
import namespace_visibility_1

0 commit comments

Comments
 (0)