Skip to content

Commit 92dd624

Browse files
committed
Sort file paths in FakeSharedHarvesterPool._key
Make the pool key order-independent by sorting normalized absolute file paths before forming the tuple. This prevents different keys for the same set of CTI files when they are provided in a different order (while preserving normcase/abspath normalization).
1 parent 02bcbb9 commit 92dd624

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/cameras/backends/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def configure(cls, harvester_factory):
682682
@staticmethod
683683
def _key(cti_files) -> tuple[str, ...]:
684684
# Stable across case/path spelling on Windows while preserving loaded_files separately.
685-
return tuple(os.path.normcase(os.path.abspath(str(p))) for p in cti_files)
685+
return tuple(sorted(os.path.normcase(os.path.abspath(str(p))) for p in cti_files))
686686

687687
@classmethod
688688
def acquire(cls, cti_files):

0 commit comments

Comments
 (0)