File: TODO

package info (click to toggle)
python-quantities 0.12.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 828 kB
  • sloc: python: 9,127; makefile: 72; sh: 3
file content (47 lines) | stat: -rw-r--r-- 2,668 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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)