Whole file

brean/python-pathfinding

The author described this change as Fixed world.cleanup() bug and extended test_connect_grids to test it.. It counts as a record because the check below fails on the code as it stood at 8cdd475dd and passes on deda5d4e6, with nothing else changed between the two runs.

Fix saved2026-01-05
Sharing licenceMIT · LICENSE
Change size+1 1

What the code was meant to do, written into the code itself as a save note

Fixed world.cleanup() bug and extended test_connect_grids to test it.

The change

1212 self.dirty = False
1313
1414 def cleanup(self):
15- for grid in self.grids:
15+ for grid in self.grids.values():
1616 grid.cleanup()
1717
1818 def neighbors(

The check that tells the two apart

failpass·test/test_connect_grids.py::test_connect

Check file test/test_connect_grids.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it8cdd475dd3a1532132a1338543aa85fd61e0fdec
Broken version dated2025-11-02
Modulepathfinding.core.world
Units changedWorld
Fingerprintef8289b71c6cbf6a
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.