Skip to content

Commit 1cd54c1

Browse files
committed
[CICD] Invalid escape sequence on windows CI
1 parent 5afa76d commit 1cd54c1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/test_compute.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

204204
class 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)

0 commit comments

Comments
 (0)