Commits

Mike Bayer committed 2e958f4

fix weakref issue seen on one buildbot test

  • Participants
  • Parent commits 5f3be6c
  • Tags rel_0_4_2

Comments (0)

Files changed (1)

File lib/sqlalchemy/orm/__init__.py

     """
     mapperlib._COMPILE_MUTEX.acquire()
     try:
-        for mapper in _mapper_registry:
+        for mapper in list(_mapper_registry):
             mapper.dispose()
     finally:
         mapperlib._COMPILE_MUTEX.release()