Commits

Mike Bayer committed 2e958f4

fix weakref issue seen on one buildbot test

Comments (0)

Files changed (1)

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()