Skip to content

Commit fadb0b5

Browse files
committed
mark known failures
1 parent b0d1860 commit fadb0b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

quantities/tests/test_umath.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# -*- coding: utf-8 -*-
2+
3+
24
import numpy as np
35

46
from .. import units as pq
5-
from .common import TestCase
7+
from .common import TestCase, unittest
68

79

810
class TestUmath(TestCase):
@@ -44,6 +46,7 @@ def test_gradient(self):
4446
except ValueError as e:
4547
raise self.failureException(e)
4648

49+
@unittest.expectedFailure
4750
def test_cross(self):
4851
a = [3,-3, 1] * pq.kPa
4952
b = [4, 9, 2] * pq.m**2
@@ -147,6 +150,7 @@ def test_ceil(self):
147150
[-1., -1., -0., 1., 2., 2., 2.] * pq.m
148151
)
149152

153+
@unittest.expectedFailure
150154
def test_fix(self):
151155
try:
152156
self.assertQuantityEqual(np.fix(3.14 * pq.degF), 3.0 * pq.degF)
@@ -234,6 +238,7 @@ def test_radians(self):
234238
)
235239
self.assertRaises(ValueError, np.radians, 0*pq.radians)
236240

241+
@unittest.expectedFailure
237242
def test_unwrap(self):
238243
self.assertQuantityEqual(np.unwrap([0,3*np.pi]*pq.radians), [0,np.pi])
239244
self.assertQuantityEqual(np.unwrap([0,540]*pq.deg), [0,180]*pq.deg)

0 commit comments

Comments
 (0)