fix flake8 line length check
@@ -41,8 +41,8 @@ class TestPacking(unittest.TestCase):
self.check_unpackbits([255])
self.check_unpackbits([100, 200, 123, 213])
a = cupy.array([10, 20, 30])
- pytest.raises(TypeError, cupy.unpackbits, cupy.array([10, 20, 30],dtype=int))
- pytest.raises(TypeError, cupy.unpackbits, cupy.array([10, 20, 30],dtype=float))
+ pytest.raises(TypeError, cupy.unpackbits, a)
+ pytest.raises(TypeError, cupy.unpackbits, a.astype(float))
def test_pack_unpack_order(self):
for bo in ['big', 'little']:
@@ -54,6 +54,3 @@ class TestPacking(unittest.TestCase):
a = cupy.array([10, 20, 30], dtype=cupy.uint8)
pytest.raises(ValueError, cupy.unpackbits, a, bitorder='r')
pytest.raises(ValueError, cupy.unpackbits, a, bitorder=10)
\ No newline at end of file
-
- # assert_raises(ValueError, np.unpackbits, a, bitorder='r')
- # assert_raises(TypeError, np.unpackbits, a, bitorder=10)
