diff options
author | Marcel Hellkamp <marc@gsites.de> | 2012-10-11 20:52:23 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2012-10-11 21:21:04 +0200 |
commit | b99421b9891931b2eb230a9832bf4738fef1b3cd (patch) | |
tree | a078c723ee200a7abf8cf16e7338efba08f0e4cf | |
parent | 2c641552fb61b4c5c7d246f20a10aea43a4707e5 (diff) | |
download | bottle-b99421b9891931b2eb230a9832bf4738fef1b3cd.tar.gz |
fix #382: "dictionary changed size during iteration" bug in test case.
-rwxr-xr-x | test/test_environ.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_environ.py b/test/test_environ.py index 5198b02..930280c 100755 --- a/test/test_environ.py +++ b/test/test_environ.py @@ -586,7 +586,7 @@ class TestRedirect(unittest.TestCase): def assertRedirect(self, target, result, query=None, status=303, **args): env = {'SERVER_PROTOCOL':'HTTP/1.1'} - for key in args: + for key in list(args): if key.startswith('wsgi'): args[key.replace('_', '.', 1)] = args[key] del args[key] |