Skip to content

Commit ad082bc

Browse files
author
y-p
committed
TST: fix test to test dupe columns, instead of null op
1 parent 441e442 commit ad082bc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/tests/test_frame.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -4544,14 +4544,13 @@ def stuple_to_tuple(x):
45444544
for nrows in [10,N-2,N-1,N,N+1,N+2]:
45454545
df = mkdf(nrows, 10)
45464546
cols = list(df.columns)
4547-
cols[:1] = ["dupe","dupe"]
4548-
cols[-1:] = ["dupe","dupe"]
4547+
cols[:2] = ["dupe","dupe"]
4548+
cols[-2:] = ["dupe","dupe"]
45494549
ix = list(df.index)
45504550
ix[:2] = ["rdupe","rdupe"]
45514551
ix[-2:] = ["rdupe","rdupe"]
4552-
print( nrows)
4553-
45544552
df.index=ix
4553+
df.columns=cols
45554554
_do_test(df,path)
45564555

45574556
for r_idx_type in ['i', 'f','s','u','dt']:

0 commit comments

Comments
 (0)