diff --git a/src/bindgen/python/emscripten/emscripten-test-module.js b/src/bindgen/python/emscripten/emscripten-test-module.js index 4bcb23269..e0fec60f9 100644 --- a/src/bindgen/python/emscripten/emscripten-test-module.js +++ b/src/bindgen/python/emscripten/emscripten-test-module.js @@ -32,6 +32,10 @@ async def test_example(selenium, package_wheel): if (!fs.existsSync(modulePath)) { fs.writeFileSync(modulePath, moduleContent) } + const initPath = path.join(packageDir, 'test', '__init__.py') + if (!fs.existsSync(initPath)) { + fs.writeFileSync(initPath, '') + } } export default emscriptenTestModule