update pybind11

This commit is contained in:
Thomas Kunze
2024-09-14 19:39:30 +02:00
parent 1f406abbd4
commit e15da8451b
126 changed files with 15755 additions and 24148 deletions

View File

@@ -1,7 +1,10 @@
from __future__ import annotations
import sys
import threading
import pytest
from pybind11_tests import thread as m
@@ -24,6 +27,7 @@ class Thread(threading.Thread):
raise self.e
@pytest.mark.skipif(sys.platform.startswith("emscripten"), reason="Requires threads")
def test_implicit_conversion():
a = Thread(m.test)
b = Thread(m.test)
@@ -34,6 +38,7 @@ def test_implicit_conversion():
x.join()
@pytest.mark.skipif(sys.platform.startswith("emscripten"), reason="Requires threads")
def test_implicit_conversion_no_gil():
a = Thread(m.test_no_gil)
b = Thread(m.test_no_gil)