EE.FE.EEE.EEEEEE ====================================================================== ERROR: testCmp (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 108, in testCmp self.assertFalse(Interval(1, 2) <= Interval(0.5, 1.5)) File ".../fn43648/2007-04-04 17:26:48/user.py", line 152, in __le__ return contains(other, self) or self == other NameError: global name 'contains' is not defined ====================================================================== ERROR: testContains (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 80, in testContains self.assertFalse(Interval(-33, None).contains(Interval(-34, None))) File ".../fn43648/2007-04-04 17:26:48/user.py", line 7, in __init__ raise ValueError ValueError ====================================================================== ERROR: testHash (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 92, in testHash self.assertEqual(hash(Interval(3, 11)), hash(Interval(3, 11))) TypeError: unhashable instance ====================================================================== ERROR: testIntersect (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 68, in testIntersect self.assertEqual(Interval(6, 11), Interval(None, 11).intersect(Interval(6, 12))) File ".../fn43648/2007-04-04 17:26:48/user.py", line 9, in __init__ self.leftEnd = float(leftEnd) TypeError: float() argument must be a string or a number ====================================================================== ERROR: testIntersects (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 75, in testIntersects self.assertFalse(Interval(None, -33).intersects(Interval(-32, 4))) File ".../fn43648/2007-04-04 17:26:48/user.py", line 9, in __init__ self.leftEnd = float(leftEnd) TypeError: float() argument must be a string or a number ====================================================================== ERROR: testLeftOpen (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 36, in testLeftOpen i = Interval(7, None) File ".../fn43648/2007-04-04 17:26:48/user.py", line 7, in __init__ raise ValueError ValueError ====================================================================== ERROR: testLen (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 97, in testLen self.assertEqual(0, len(Interval(-22, None))) File ".../fn43648/2007-04-04 17:26:48/user.py", line 7, in __init__ raise ValueError ValueError ====================================================================== ERROR: testOpen (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 50, in testOpen i = Interval(None, 456546) File ".../fn43648/2007-04-04 17:26:48/user.py", line 9, in __init__ self.leftEnd = float(leftEnd) TypeError: float() argument must be a string or a number ====================================================================== ERROR: testRepr (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 24, in testRepr i = Interval(None, 131.0) File ".../fn43648/2007-04-04 17:26:48/user.py", line 9, in __init__ self.leftEnd = float(leftEnd) TypeError: float() argument must be a string or a number ====================================================================== ERROR: testRightOpen (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 42, in testRightOpen i = Interval(7, None) File ".../fn43648/2007-04-04 17:26:48/user.py", line 7, in __init__ raise ValueError ValueError ====================================================================== ERROR: testSum (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 102, in testSum self.assertEqual(Interval(None, None), Interval(None, 11) + Interval(10, None)) File ".../fn43648/2007-04-04 17:26:48/user.py", line 8, in __init__ self.rightEnd = float(rightEnd) TypeError: float() argument must be a string or a number ====================================================================== ERROR: testUnequal (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 88, in testUnequal self.assertFalse(Interval(None, -8) != Interval(None, -8)) File ".../fn43648/2007-04-04 17:26:48/user.py", line 9, in __init__ self.leftEnd = float(leftEnd) TypeError: float() argument must be a string or a number ====================================================================== FAIL: testExpand (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 62, in testExpand self.assertEqual(Interval(-3, 10), i.expand(right=-1)) AssertionError: Interval[-3.0, 10.0] != None ---------------------------------------------------------------------- Ran 16 tests in 0.006s FAILED (failures=1, errors=12)