Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[smart_holder] Add test_namespace_visibility #4050

Merged
merged 11 commits into from
Jul 13, 2022

Conversation

rwgk
Copy link
Collaborator

@rwgk rwgk commented Jul 8, 2022

Description

To probe environment/toolchain/platform-specific behavior under the exact same conditions as normal tests.

(An earlier version of this code was used to inform PR #4043.)

Suggested changelog entry:

To probe environment/toolchain/platform-specific behavior under the exact same conditions as normal tests.

(An earlier version of this code was used to inform PR pybind#4043.)
@rwgk rwgk changed the title Add test_namespace_visibility [smart_holder] Add test_namespace_visibility Jul 8, 2022
Ralf W. Grosse-Kunstleve added 6 commits July 8, 2022 10:50
…and CUDA `test_cross_module_exception_translator` failures).
…s action un-helpfully removed the added noqa).
…files, only setting the module docstring and doing nothing else.
…py, so that it is imported by pytest before test_exceptions.py
Copy link

@charlesbeattie charlesbeattie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are all nit-picks so please ignore if you want.

@@ -0,0 +1,31 @@
// Copyright (c) 2022 The Pybind Development Team.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this have a different extension.
I use .inc for files that are not normal header files others use .inl

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to .inl:
pre-commit run --all-files clang-format did not pick up the .inc file, but it does pick up .inl without any changes elsewhere.
(A also tested this Google-internally with .inl and it worked immediately, too.)

tests/test_exc_namespace_visibility.py Show resolved Hide resolved
@rwgk rwgk marked this pull request as ready for review July 13, 2022 00:58
@rwgk rwgk requested a review from henryiii as a code owner July 13, 2022 00:58
@rwgk rwgk merged commit 203cc26 into pybind:smart_holder Jul 13, 2022
@rwgk rwgk deleted the probe_namespace_visibility_sh branch July 13, 2022 01:34
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Jul 13, 2022
@rwgk rwgk removed the needs changelog Possibly needs a changelog entry label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants