pytest-dev / pytest-runner

MIT License
56 stars 21 forks source link

prevent mutating opts while iterating #21

Closed brunson closed 7 years ago

brunson commented 8 years ago

Mutating a dict while iterating over its keys causes a RuntimeError in python 3. This update creates a list of keys to iterate over.

brunson commented 8 years ago

http://legacy.python.org/dev/peps/pep-0469/#iterator-objects

This small update seems to fix our issues in python 3.5

jaraco commented 7 years ago

Indeed, this issue was fixed in the original code in pypa/setuptools#131.