@@ -8,11 +8,11 @@ def test_list(self):
8
8
assert Bit ([True , False , True ]).to_list () == [True , False , True ]
9
9
10
10
def test_list_none (self ):
11
- with pytest .warns (UserWarning , match = 'expected elements to be boolean' ):
11
+ with pytest .warns (UserWarning , match = 'elements should be boolean' ):
12
12
assert Bit ([True , None , True ]).to_text () == '101'
13
13
14
14
def test_list_int (self ):
15
- with pytest .warns (UserWarning , match = 'expected elements to be boolean' ):
15
+ with pytest .warns (UserWarning , match = 'elements should be boolean' ):
16
16
assert Bit ([254 , 7 , 0 ]).to_text () == '110'
17
17
18
18
def test_tuple (self ):
@@ -36,12 +36,12 @@ def test_ndarray_unpackbits(self):
36
36
37
37
def test_ndarray_uint8 (self ):
38
38
arr = np .array ([254 , 7 , 0 ], dtype = np .uint8 )
39
- with pytest .warns (UserWarning , match = 'expected elements to be boolean' ):
39
+ with pytest .warns (UserWarning , match = 'elements should be boolean' ):
40
40
assert Bit (arr ).to_text () == '110'
41
41
42
42
def test_ndarray_uint16 (self ):
43
43
arr = np .array ([254 , 7 , 0 ], dtype = np .uint16 )
44
- with pytest .warns (UserWarning , match = 'expected elements to be boolean' ):
44
+ with pytest .warns (UserWarning , match = 'elements should be boolean' ):
45
45
assert Bit (arr ).to_text () == '110'
46
46
47
47
def test_ndim_two (self ):
0 commit comments