Re: [Django] #15703: Testsuite failure: django.utils.datastructures

2011-03-28 Thread Django
#15703: Testsuite failure: django.utils.datastructures
-+--
   Reporter:  mk |Owner:  nobody
 Status:  new|Milestone:
  Component:  Core framework |  Version:  SVN
 Resolution: | Keywords:
   Triage Stage:  Ready for checkin  |Has patch:  0
Needs documentation:  0  |  Needs tests:  0
Patch needs improvement:  0  |
-+--
Changes (by russellm):

 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Ready for checkin


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #15703: Testsuite failure: django.utils.datastructures

2011-03-28 Thread Django
#15703: Testsuite failure: django.utils.datastructures
+---
 Reporter:  mk  | Owner:  nobody
   Status:  new | Milestone:
Component:  Core framework  |   Version:  SVN
 Keywords:  |  Triage Stage:  Unreviewed
Has patch:  0   |
+---
 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"]
  })
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.