From 5a5d8d0ca346ad46da938a54d5a2a0d0d018d1da Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Tue, 29 Oct 2024 03:03:54 -0700 Subject: [PATCH] Fix flakey `use_location` test --- src/py/reactpy/tests/test_backend/test_all.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/py/reactpy/tests/test_backend/test_all.py b/src/py/reactpy/tests/test_backend/test_all.py index 9a1440d52..dd6f00ba2 100644 --- a/src/py/reactpy/tests/test_backend/test_all.py +++ b/src/py/reactpy/tests/test_backend/test_all.py @@ -107,17 +107,13 @@ def ShowScope(): assert isinstance(scope.current, MutableMapping) -@pytest.mark.skipIf( - sys.platform == "darwin", - reason="Tornado and Flask backends are currently buggy on MacOS.", -) async def test_use_location(display: DisplayFixture): location = reactpy.Ref() @poll async def poll_location(): """This needs to be async to allow the server to respond""" - return location.current + return getattr(location, "current", None) @reactpy.component def ShowRoute():