Skip to content

Commit 5a5d8d0

Browse files
committed
Fix flakey use_location test
1 parent f81c168 commit 5a5d8d0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/py/reactpy/tests/test_backend/test_all.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,13 @@ def ShowScope():
107107
assert isinstance(scope.current, MutableMapping)
108108

109109

110-
@pytest.mark.skipIf(
111-
sys.platform == "darwin",
112-
reason="Tornado and Flask backends are currently buggy on MacOS.",
113-
)
114110
async def test_use_location(display: DisplayFixture):
115111
location = reactpy.Ref()
116112

117113
@poll
118114
async def poll_location():
119115
"""This needs to be async to allow the server to respond"""
120-
return location.current
116+
return getattr(location, "current", None)
121117

122118
@reactpy.component
123119
def ShowRoute():

0 commit comments

Comments
 (0)