File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,9 +196,9 @@ def check_file(path, suffix=""):
196196 content = f .read ()
197197 reg = re .compile (self .logPrefix + "TestNodeD_1" + suffix )
198198 assert len (reg .findall (content )) == 1
199- check_file (preprocessLog , " \(preprocess\)" )
199+ check_file (preprocessLog , r " \(preprocess\)" )
200200 check_file (chunkLog , "" )
201- check_file (postprocessLog , " \(postprocess\)" )
201+ check_file (postprocessLog , r " \(postprocess\)" )
202202
203203
204204class TestLockUpdates :
@@ -613,3 +613,9 @@ def test_failingpreprocess(self, graphSavedOnDisk):
613613 assert node .globalStatus == Status .ERROR .name
614614 assert node .chunks [0 ]._status .status == Status .SUCCESS
615615 assert node ._preprocessChunk ._status .status == Status .ERROR
616+
617+ # Cleanup: Close all logging handlers to release file locks (Windows fix)
618+ import logging
619+ for handler in logging .root .handlers [:]:
620+ handler .close ()
621+ logging .root .removeHandler (handler )
You can’t perform that action at this time.
0 commit comments