Enable tests when they all pass
===============================

Currently three tests fail (log below). Upstream bugs are filed and upstream
says that those are essentially things that need to be dealt with in numpy, or
are known and not critical. However, having them fail make runing the test
suite pointless. This needs to be resolved either by fixing the underlying
problem, or by disabling the affected tests in Debian to be able to utilize
at least the remaining parts of the test suite at package build time.

% nosetests quantities
....................................................F........................................../usr/lib/python2.7/unittest/case.py:338: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  RuntimeWarning)
..F.......F.........................
======================================================================
FAIL: test_cumsum (quantities.tests.test_methods.TestQuantityMethods)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/michael/debian/quantities/git/quantities/tests/test_methods.py", line 144, in test_cumsum
    self.assertQuantityEqual(self.q.cumsum(), [1, 3, 6, 10] * pq.m)
  File "/home/michael/debian/quantities/git/quantities/tests/common.py", line 44, in assertQuantityEqual
    "Dimensionalities are not equal (%s vs %s)%s" % (d1, d2, msg)
AssertionError: Dimensionalities are not equal (m**2 vs m)

======================================================================
FAIL: test_cumsum (quantities.tests.test_umath.TestUmath)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/michael/debian/quantities/git/quantities/tests/test_umath.py", line 33, in test_cumsum
    self.assertQuantityEqual(np.cumsum(self.q), [1, 3, 6, 10] * pq.J)
  File "/home/michael/debian/quantities/git/quantities/tests/common.py", line 44, in assertQuantityEqual
    "Dimensionalities are not equal (%s vs %s)%s" % (d1, d2, msg)
AssertionError: Dimensionalities are not equal (J**2 vs J)

======================================================================
FAIL: test_gradient (quantities.tests.test_umath.TestUmath)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/michael/debian/quantities/git/quantities/tests/test_umath.py", line 47, in test_gradient
    raise self.failureException(e)
AssertionError: Unable to convert between units of "J" and "dimensionless"

----------------------------------------------------------------------
Ran 131 tests in 1.372s

FAILED (failures=3)

