Skip to content

Commit 830029d

Browse files
committed
another fix for python 3.14 tests
1 parent 570096b commit 830029d

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/reactpy/core/hooks.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,18 @@ def strictly_equal(x: Any, y: Any) -> bool:
595595
getattr(x.__code__, attr) == getattr(y.__code__, attr)
596596
for attr in dir(x.__code__)
597597
if attr.startswith("co_")
598-
and attr not in {"co_positions", "co_linetable", "co_lines", "co_lnotab"}
598+
and attr
599+
not in {
600+
"co_positions",
601+
"co_linetable",
602+
"co_lines",
603+
"co_lnotab",
604+
"co_branches",
605+
"co_firstlineno",
606+
"co_end_lineno",
607+
"co_col_offset",
608+
"co_end_col_offset",
609+
}
599610
)
600611

601612
# Check via the `==` operator if possible

tests/conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,6 @@ async def browser(pytestconfig: Config):
101101
)
102102

103103

104-
@pytest.fixture(scope="session")
105-
def event_loop_policy():
106-
if os.name == "nt": # nocov
107-
return asyncio.WindowsProactorEventLoopPolicy()
108-
else:
109-
return asyncio.DefaultEventLoopPolicy()
110-
111-
112104
@pytest.fixture(autouse=True)
113105
def clear_web_modules_dir_after_test():
114106
clear_reactpy_web_modules_dir()

0 commit comments

Comments
 (0)