@@ -381,12 +381,12 @@ def default_filename(self):
381381 assert len (all_loads ) == 2 , f"Expected 2 loads (parent + child), got { len (all_loads )} "
382382
383383 # First call should be for parent
384- assert "/test/parent.txt" in all_loads [0 ]["path" ]
384+ assert "/test/parent.txt" in all_loads [0 ]["path" ]. replace ( " \\ " , "/" )
385385 assert all_loads [0 ]["format" ] == MF6
386386
387387 # Second call should be for child (with its relative path)
388388 # Note: child path is relative to cwd, not parent's directory
389- assert "child1.txt" in all_loads [1 ]["path" ]
389+ assert "child1.txt" in all_loads [1 ]["path" ]. replace ( " \\ " , "/" )
390390 assert all_loads [1 ]["format" ] == MF6
391391
392392 finally :
@@ -460,11 +460,11 @@ class ChildComponent(Component):
460460 assert len (all_loads ) == 2 , f"Expected 2 loads (parent + child), got { len (all_loads )} "
461461
462462 # First call should be for parent
463- assert "/test/parent.txt" in all_loads [0 ]["path" ]
463+ assert "/test/parent.txt" in all_loads [0 ]["path" ]. replace ( " \\ " , "/" )
464464 assert all_loads [0 ]["format" ] == MF6
465465
466466 # Second call should be for child
467- assert "child1.txt" in all_loads [1 ]["path" ]
467+ assert "child1.txt" in all_loads [1 ]["path" ]. replace ( " \\ " , "/" )
468468 assert all_loads [1 ]["format" ] == MF6
469469
470470 # IMPORTANT: Child should be loaded with cwd = parent's workspace
0 commit comments