Pārlūkot izejas kodu

fix test_run for Python 3.12.5

Falko Schindler 9 mēneši atpakaļ
vecāks
revīzija
0939d863fd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      tests/test_run.py

+ 1 - 1
tests/test_run.py

@@ -48,7 +48,7 @@ async def test_run_unpickable_exception_in_cpu_bound_callback(user: User):
 
     @ui.page('/')
     async def index():
-        with pytest.raises(AttributeError, match="Can't pickle local object"):
+        with pytest.raises(AttributeError, match="Can't pickle local object|Can't get local object"):
             ui.label(await run.cpu_bound(raise_unpicklable_exception))
 
     await user.open('/')