Skip to content

Commit d625661

Browse files
committed
Normalize boolean values in file regression tests
Updated the _strip_ignores method to convert 0/1 to False/True for specific attributes, ensuring consistent test output across platforms.
1 parent 57877a7 commit d625661

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ def check(self, data, **kwargs):
2929
def _strip_ignores(self, data):
3030
for ig in self.ignores:
3131
data = re.sub(ig, "", data)
32-
return data
32+
# Normalize boolean values: convert 0/1 to False/True for consistency across platforms
33+
data = re.sub(r'((?:glob|hidden|includehidden|titlesonly)=")0(")', r'\1False\2', data)
34+
data = re.sub(r'((?:glob|hidden|includehidden|titlesonly)=")1(")', r'\1True\2', data)
35+
return data

0 commit comments

Comments
 (0)