Skip to content

Commit f43de29

Browse files
committed
fixed mpy integration tests
1 parent e1c15c0 commit f43de29

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_mpy_integration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ def setUpClass(cls):
120120

121121
# Mount uhttp client module with mpy-cross compilation
122122
client_dir = Path(__file__).parent.parent / 'uhttp'
123+
# Clear mpy-cross cache to ensure fresh compilation
124+
pycache = client_dir / '__pycache__'
125+
if pycache.exists():
126+
import shutil
127+
shutil.rmtree(pycache)
123128
mpy_cross = MpyCross()
124129
mpy_cross.init(cls.mpy.platform())
125130
cls.mount_handler = cls.mpy.mount(

0 commit comments

Comments
 (0)