Skip to content

Commit 3d9ed66

Browse files
davidhewittbazaah
authored andcommitted
need to exec multi-phase-init module
1 parent f71e1d6 commit 3d9ed66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytests/tests/test_misc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def test_multiple_imports_same_interpreter_ok():
2424
spec = importlib.util.find_spec("pyo3_pytests.pyo3_pytests")
2525

2626
module = importlib.util.module_from_spec(spec)
27+
spec.loader.exec_module(module)
2728
assert dir(module) == dir(pyo3_pytests.pyo3_pytests)
2829

2930

0 commit comments

Comments
 (0)