﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15703	Testsuite failure: django.utils.datastructures	Matthias Kestenholz	nobody	"The test in tests/regressiontests/utils/datastructures fails since yesterday with the following error:

{{{
======================================================================
ERROR: test_copy (regressiontests.utils.datastructures.MultiValueDictTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/mk/Projects/django/tests/regressiontests/utils/datastructures.py"", line 222, in test_copy
    d2 = copy_func(d1)
TypeError: 'module' object is not callable
}}}

The testsuite is easily fixed by the following patch:

{{{
diff --git a/tests/regressiontests/utils/datastructures.py b/tests/regressiontests/utils/datastructures.py
index 6ae652c..3ef1342 100644
--- a/tests/regressiontests/utils/datastructures.py
+++ b/tests/regressiontests/utils/datastructures.py
@@ -214,7 +214,7 @@ class MultiValueDictTests(DatastructuresTestCase):
                           ['Developer', 'Simon', 'Willison'])
 
     def test_copy(self):
-        for copy_func in [copy, lambda d: d.copy()]:
+        for copy_func in [copy.copy, lambda d: d.copy()]:
             d1 = MultiValueDict({
                 ""developers"": [""Carl"", ""Fred""]
             })
}}}"		closed	Core (Other)	dev		fixed			Ready for checkin	0	0	0	0	0	0
