Skip to content

Commit

Permalink
TST: improve test_repr_bytes_61_lines setup to speed up test (#55724)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Oct 27, 2023
1 parent b7ab856 commit c36e302
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pandas/tests/frame/test_repr_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ class TestDataFrameReprInfoEtc:
def test_repr_bytes_61_lines(self):
# GH#12857
lets = list("ACDEFGHIJKLMNOP")
slen = 50
nseqs = 1000
words = [
[np.random.default_rng(2).choice(lets) for x in range(slen)]
for _ in range(nseqs)
]
words = np.random.default_rng(2).choice(lets, (1000, 50))
df = DataFrame(words).astype("U1")
assert (df.dtypes == object).all()

Expand Down

0 comments on commit c36e302

Please sign in to comment.