Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/test_stl_binders.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
keys = mm.keys()
values = mm.values()
items = mm.items()
assert keys & {"a", "c"} == {"a"}

Check failure on line 167 in tests/test_stl_binders.py

View workflow job for this annotation

GitHub Actions / 🐍 (ubuntu-latest, pypy3.11, -DCMAKE_CXX_STANDARD=17) / 🧪

test_map_string_double TypeError: unsupported operand type(s) for &: 'KeysView' and 'set'

Check failure on line 167 in tests/test_stl_binders.py

View workflow job for this annotation

GitHub Actions / 🐍 (ubuntu-latest, graalpy-24.2, -DCMAKE_CXX_STANDARD=20) / 🧪

test_map_string_double TypeError: unsupported operand type(s) for &: 'pybind11_tests.stl_binders.KeysView' and 'set'

Check failure on line 167 in tests/test_stl_binders.py

View workflow job for this annotation

GitHub Actions / 🐍 (ubuntu-22.04, 3.8, -DPYBIND11_FINDPYTHON=OFF -DPYBIND11_NUMPY_1_ONLY=ON) / 🧪

test_map_string_double TypeError: unsupported operand type(s) for &: 'pybind11_tests.stl_binders.KeysView' and 'set'

Check failure on line 167 in tests/test_stl_binders.py

View workflow job for this annotation

GitHub Actions / 🐍 (ubuntu-latest, 3.13, -DCMAKE_CXX_STANDARD=23 -DPYBIND11_SIMPLE_GIL_MANAGEMENT=ON) / 🧪

test_map_string_double TypeError: unsupported operand type(s) for &: 'pybind11_tests.stl_binders.KeysView' and 'set'

Check failure on line 167 in tests/test_stl_binders.py

View workflow job for this annotation

GitHub Actions / 🐍 (ubuntu-latest, 3.14t, -DCMAKE_CXX_STANDARD=17 -DPYBIND11_TEST_SMART_HOLDER=ON) / 🧪

test_map_string_double TypeError: unsupported operand type(s) for &: 'pybind11_tests.stl_binders.KeysView' and 'set'
assert list(keys) == ["a", "b"]
assert len(keys) == 2
assert "a" in keys
Expand Down
Loading