File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ def test_shares_memory_numpy():
4444def test_shares_memory_series ():
4545 arr = np .arange (10 )
4646 s = pd .Series (arr )
47- assert tm .shares_memory (arr , s )
47+ assert tm .shares_memory (s , arr )
4848 s2 = pd .Series (np .arange (10 ))
4949 assert not tm .shares_memory (s , s2 )
5050
5151
5252def test_shares_memory_dataframe_single_block ():
5353 arr = np .arange (10 )
5454 df = pd .DataFrame ({"a" : arr })
55- assert tm .shares_memory (arr , df )
55+ assert tm .shares_memory (df , arr )
5656 df2 = pd .DataFrame ({"a" : np .arange (10 )})
5757 assert not tm .shares_memory (df , df2 )
5858
@@ -65,7 +65,5 @@ def test_shares_memory_rangeindex():
6565
6666def test_shares_memory_multiindex ():
6767 idx = pd .MultiIndex .from_arrays ([np .arange (10 ), np .arange (10 , 20 )])
68- arr = idx .codes [0 ]
69- assert tm .shares_memory (idx , arr )
7068 arr2 = np .arange (10 )
7169 assert not tm .shares_memory (idx , arr2 )
You can’t perform that action at this time.
0 commit comments