- 16 Aug, 2020 3 commits
-
-
Henry Schreiner authored
* tests: refactor and cleanup * refactor: more consistent * tests: vendor six * tests: more xfails, nicer system * tests: simplify to info * tests: suggestions from @YannickJadoul and @bstaletic * tests: restore some pypy tests that now pass * tests: rename info to env * tests: strict False/True * tests: drop explicit strict=True again * tests: reduce minimum PyTest to 3.1
-
James R. Barlow authored
To deal with exceptions that hit destructors or other noexcept functions. Includes fixes to support Python 2.7 and extends documentation on error handling. @virtuald and @YannickJadoul both contributed to this PR.
-
Henry Schreiner authored
-
- 14 Aug, 2020 2 commits
-
-
Ralf W. Grosse-Kunstleve authored
Important gain: uniformity & therefore easier cleanup when we drop PY2 support. Very slight loss: it was nice to have `str is bytes` as a reminder in this specific context.
-
Eric Cousineau authored
Fix logic in test_bytes_to_string Co-authored-by:Henry Schreiner <henryschreineriii@gmail.com>
-
- 13 Aug, 2020 1 commit
-
-
marc-chiesa authored
Modified Vector STL bind initialization from a buffer type with optimization for simple arrays (#2298) * Modified Vector STL bind initialization from a buffer type with optimization for simple arrays * Add subtests to demonstrate processing Python buffer protocol objects with step > 1 * Fixed memoryview step test to only run on Python 3+ * Modified Vector constructor from buffer to return by value for readability
-
- 12 Aug, 2020 2 commits
-
-
Henry Schreiner authored
-
Henry Schreiner authored
-
- 11 Aug, 2020 1 commit
-
-
Ralf W. Grosse-Kunstleve authored
These tests will also alert us to any behavior changes across Python and PyPy versions. Hardening tests in preparation for changing `pybind11::str` to only hold `PyUnicodeObject` (NOT also `bytes`). Note that this test exposes that `pybind11::str` can also hold `bytes`.
-
- 06 Aug, 2020 2 commits
-
-
Henry Schreiner authored
-
Henry Schreiner authored
-
- 04 Aug, 2020 1 commit
-
-
Yannick Jadoul authored
* Enable py::ellipsis on Python 2 * Enable py::ellipsis tests on Python 2 and mention `Ellipsis` in the docs
-
- 01 Aug, 2020 1 commit
-
-
jbarlow83 authored
Fixes issue #1878
-
- 31 Jul, 2020 3 commits
-
-
Henry Schreiner authored
-
Henry Schreiner authored
-
Henry Schreiner authored
fix: include PYTHON_IS_DEBUG
-
- 28 Jul, 2020 4 commits
-
-
Marcin Wojdyr authored
-
Henry Schreiner authored
-
Henry Schreiner authored
-
Henry Schreiner authored
-
- 26 Jul, 2020 5 commits
-
-
Sergei Izmailov authored
fixes #2191
-
Henry Schreiner authored
-
Henry Schreiner authored
-
Henry Schreiner authored
-
Henry Schreiner authored
-
- 24 Jul, 2020 1 commit
-
-
Boris Staletic authored
If the default argument value is a class, and not an instance of a class, `a.value.attr("__repr__")` raises a `ValueError`. Switching to `repr(a.value)` makes this use case work. Fixes #2028
-
- 23 Jul, 2020 5 commits
-
-
Henry Schreiner authored
Adds requirements file too.
-
Henry Schreiner authored
-
Henry Schreiner authored
-
Henry Schreiner authored
-
Henry Schreiner authored
-
- 22 Jul, 2020 1 commit
-
-
Ralf W. Grosse-Kunstleve authored
Tested with 2.7.18rc1, built with Py_UNICODE_SIZE 4. Change also tested with Python 3.8.
-
- 20 Jul, 2020 1 commit
-
-
Henry Schreiner authored
-
- 15 Jul, 2020 1 commit
-
-
Kota Yamaguchi authored
* Fix undefined memoryview format * Add missing <algorithm> header * Add workaround for py27 array compatibility * Workaround py27 memoryview behavior * Fix memoryview constructor from buffer_info * Workaround PyMemoryView_FromMemory availability in py27 * Fix up memoryview tests * Update memoryview test from buffer to check signedness * Use static factory method to create memoryview * Remove ndim arg from memoryview::frombuffer and add tests * Allow ndim=0 memoryview and documentation fixup * Use void* to align to frombuffer method signature * Add const variants of frombuffer and frommemory * Add memory view section in doc * Fix docs * Add test for null buffer * Workaround py27 nullptr behavior in test * Rename frombuffer to from_buffer
-
- 08 Jul, 2020 1 commit
-
-
Yannick Jadoul authored
* Change NAMESPACE_BEGIN and NAMESPACE_END macros into PYBIND11_NAMESPACE_BEGIN and PYBIND11_NAMESPACE_END * Fix sudden HomeBrew 'python not installed' error * Sweep difference in 'Class.__init__() must be called when overriding __init__' error message between CPython and PyPy under the rug * Homebrew updated to 3.8 yesterday. Co-authored-by:Henry Schreiner <HenrySchreinerIII@gmail.com>
-
- 07 Jul, 2020 3 commits
-
-
Isuru Fernando authored
* Error out eval_file * Enable dynamic attribute support for Pypy >= 6 * Add a test for dynamic attribute support * Skip test for eval_file on pypy * Workaround for __qualname__ on PyPy3 * Add a PyPy3.6 7.3.0 build * Only disable in PyPy3 * Fix travis testing * No numpy and scipy for pypy * Enable test on pypy2 * Fix logic in eval_file * Skip a few tests due to bugs in PyPy * scipy wheels are broken. make pypy2 a failrue Co-authored-by:Andreas Kloeckner <inform@tiker.net>
-
Robert Haschke authored
-
Dustin Spicuzza authored
- Fixes #2103
-
- 30 Jun, 2020 2 commits
-
-
Yannick Jadoul authored
* Adding pybind11::cast overload for rvalue references
-
B Krishna Chaitanya authored
-