.FFFEEEF ====================================================================== ERROR: test_3_avg_lists_simple (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 117, in test_3_avg_lists_simple self.assert_game(m1, m2, (0, 1)) File ".../test.py", line 188, in assert_game self.assertEqual(self.user.module_game(m1, m2), res) File ".../fn43550/2007-04-02 18:56:29/user.py", line 114, in module_game res2+=p3(m2,m1,attr2,attr1) File ".../fn43550/2007-04-02 18:56:29/user.py", line 54, in p3 if avgSqrt(a)>avgSum(numList(m2,result2)): File ".../fn43550/2007-04-02 18:56:29/user.py", line 88, in avgSum return reduce(lambda x,y:x+y,l)/len(l) TypeError: reduce() of empty sequence with no initial value ====================================================================== ERROR: test_4_avg_lists_tricky (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 127, in test_4_avg_lists_tricky self.assert_game(m1, m2, (0, 0)) File ".../test.py", line 188, in assert_game self.assertEqual(self.user.module_game(m1, m2), res) File ".../fn43550/2007-04-02 18:56:29/user.py", line 110, in module_game res1+=p3(m1,m2,attr1,attr2) File ".../fn43550/2007-04-02 18:56:29/user.py", line 54, in p3 if avgSqrt(a)>avgSum(numList(m2,result2)): File ".../fn43550/2007-04-02 18:56:29/user.py", line 88, in avgSum return reduce(lambda x,y:x+y,l)/len(l) TypeError: reduce() of empty sequence with no initial value ====================================================================== ERROR: test_5_comm_simple (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 154, in test_5_comm_simple self.assert_game(m1, m2, (2, 1)) File ".../test.py", line 188, in assert_game self.assertEqual(self.user.module_game(m1, m2), res) File ".../fn43550/2007-04-02 18:56:29/user.py", line 109, in module_game res1+=p2(m1,attr1) File ".../fn43550/2007-04-02 18:56:29/user.py", line 44, in p2 if a.func_name == b.func_name:continue AttributeError: 'builtin_function_or_method' object has no attribute 'func_name' ====================================================================== FAIL: test7_sort_simple (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 175, in test7_sort_simple self.assert_game(m1, m2, (3, 0)) File ".../test.py", line 188, in assert_game self.assertEqual(self.user.module_game(m1, m2), res) AssertionError: (0, 0) != (3, 0) ====================================================================== FAIL: test_1_end3_funcs_simple (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 89, in test_1_end3_funcs_simple self.assert_game(m1, m2, (0, 2)) File ".../test.py", line 188, in assert_game self.assertEqual(self.user.module_game(m1, m2), res) AssertionError: (0, 0) != (0, 2) ====================================================================== FAIL: test_2_end3_funcs_complex (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 108, in test_2_end3_funcs_complex self.assert_game(m1, m2, (2, 1)) File ".../test.py", line 188, in assert_game self.assertEqual(self.user.module_game(m1, m2), res) AssertionError: (0, 0) != (2, 1) ====================================================================== FAIL: test_8_sort_complex (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 185, in test_8_sort_complex self.assert_game(m1, m2, (0, 6)) File ".../test.py", line 188, in assert_game self.assertEqual(self.user.module_game(m1, m2), res) AssertionError: (0, 0) != (0, 6) ---------------------------------------------------------------------- Ran 8 tests in 0.408s FAILED (failures=4, errors=3)