Skip to content

Commit

Permalink
Fix flakey use_location test
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Oct 29, 2024
1 parent f81c168 commit 5a5d8d0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/py/reactpy/tests/test_backend/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 5a5d8d0

Please sign in to comment.