On Thu, Mar 18, 2010 at 06:54:10AM -0700, Anne Schilling wrote: > However, I currently get several errors in the test in > /combinat/crysals/tensor_product > of the type with or without the patch > > ...sage/combinat/crystals anne$ sage -t tensor_product.py > sage -t "4.3.3/devel/sage-combinat/sage/combinat/crystals/tensor_product.py" > ********************************************************************** > File > "/Applications/sage-4.3.3/devel/sage-combinat/sage/combinat/crystals/tensor_product.py", > line 334: > sage: TestSuite(T).run() > Expected nothing > Got: > Failure in _test_an_element: > Traceback (most recent call last): > File > "/Applications/sage/local/lib/python/site-packages/sage/misc/sage_unittest.py", > line 268, in run > test_method(tester = tester) > File > "/Applications/sage/local/lib/python/site-packages/sage/categories/sets_cat.py", > line 316, in _test_an_element > tester.assert_(self(an_element) == an_element, "element construction > is not idempotent") > File "/Applications/sage/local/lib/python2.6/unittest.py", line 325, in > failUnless > if not expr: raise self.failureException, msg > AssertionError: element construction is not idempotent > ------------------------------------------------------------ > The following tests failed: _test_an_element > > Where do they come from?
Rerun the test under pdb: sage: %pdb sage: TestSuite(T).run() ... pdb> u and it will point you exactly to the line showing the error. You will see something like, for element = T.an_element(), you don't have T(element) == element (which should hold). So there must be a glitch in the constructor or equality test. Note that this sanity check was just added recently, so this may have already been broken for a while, and in particular before your change. Cheers, Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/ -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.