1. 06 Feb, 2022 2 commits
    • tests: update catch to 2.13.5 to fix glibc 2.34 failures (#3679) · 96b943be
      * Download catch for MinGw
      
      * Fix rest of MinGW
      
      * fix: update catch to 2.13.5 to fix glibc 2.34 failures
      
      Update the downloaded Catch version to 2.13.5, in order to fix build
      failure on glibc 2.34:
      
      ```
      In file included from /usr/include/signal.h:328,
                       from /tmp/pybind11/.nox/tests-3-9/tmp/tests/catch/catch.hpp:8030,
                       from /tmp/pybind11/tests/test_embed/catch.cpp:13:
      /tmp/pybind11/.nox/tests-3-9/tmp/tests/catch/catch.hpp:10818:58: error: call to non-‘constexpr’ function ‘long int sysconf(int)’
      10818 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
            |                                                          ^~~~~~~~~~~
      In file included from /usr/include/python3.9/Python.h:36,
                       from /tmp/pybind11/include/pybind11/detail/common.h:215,
                       from /tmp/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pybind11/include/pybind11/embed.h:12,
                       from /tmp/pybind11/tests/test_embed/catch.cpp:4:
      /usr/include/unistd.h:640:17: note: ‘long int sysconf(int)’ declared here
        640 | extern long int sysconf (int __name) __THROW;
            |                 ^~~~~~~
      In file included from /tmp/pybind11/tests/test_embed/catch.cpp:13:
      /tmp/pybind11/.nox/tests-3-9/tmp/tests/catch/catch.hpp:10877:45: error: size of array ‘altStackMem’ is not an integral constant-expression
      10877 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
            |                                             ^~~~~~~~~~~~
      ```
      
      The newest Catch version cannot be used yet because of regression:
      https://github.com/catchorg/Catch2/pull/2364
      
      * fix: add option for _ check, only define on pybind11
      
      * Revert "fix: add option for _ check, only define on pybind11"
      
      This reverts commit 86817db488c547816e21e20d678db318bb286384.
      
      * fix: only undef _ for catch cpp creation.
      
      Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
      Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
      Michał Górny committed
  2. 03 Feb, 2022 2 commits
  3. 02 Feb, 2022 4 commits
  4. 31 Jan, 2022 5 commits
  5. 29 Jan, 2022 2 commits
  6. 27 Jan, 2022 1 commit
  7. 26 Jan, 2022 2 commits
  8. 19 Jan, 2022 1 commit
  9. 17 Jan, 2022 1 commit
  10. 16 Jan, 2022 1 commit
  11. 15 Jan, 2022 1 commit
  12. 14 Jan, 2022 1 commit
    • Add support for nested C++11 exceptions (#3608) · d2ec8367
      * Add support for nested C++11 exceptions
      
      * Remove wrong include
      
      * Fix if directive
      
      * Fix missing skipif
      
      * Simplify code and try to work around MSVC bug
      
      * Clarify comment
      
      * Further simplify code
      
      * Remove the last extra throw statement
      
      * Qualify auto
      
      * Fix typo
      
      * Add missing return for consistency
      
      * Fix clang-tidy complaint
      
      * Fix python2 stub
      
      * Make clang-tidy happy
      
      * Fix compile error
      
      * Fix python2 function signature
      
      * Extract C++20 utility and backport
      
      * Cleanup code a bit more
      
      * Improve test case
      
      * Consolidate code and fix signature
      
      * Fix typo
      Aaron Gokaslan committed
  13. 12 Jan, 2022 2 commits
  14. 11 Jan, 2022 4 commits
  15. 10 Jan, 2022 1 commit
  16. 03 Jan, 2022 1 commit
  17. 29 Dec, 2021 1 commit
    • Adding dedicated test_const_name. (#3578) · 1bbaeb34
      * Adding dedicated test_const_name.
      
      Also exercises pybind11::detail::_ backward compatibility.
      
      See also: PR #3423
      
      * Backing out tests involving int_to_str (requires C++17 or higher).
      
      * Suppressing clang-tidy errors.
      
      * Disabling test_const_name for MSVC 2015 due to bizarre failures.
      
      * Stacking @pytest.mark.parametrize (thanks to @skylion007 for pointing out).
      Ralf W. Grosse-Kunstleve committed
  18. 28 Dec, 2021 3 commits
  19. 27 Dec, 2021 1 commit
  20. 23 Dec, 2021 1 commit
  21. 21 Dec, 2021 3 commits