Skip to content

Commit

Permalink
Use common variable
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Mar 4, 2022
1 parent 66acd59 commit a7588b3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/cudf/cudf/tests/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -7240,10 +7240,9 @@ def test_sample_axis_0(
def test_sample_reproducibility(replace, random_state_lib):
df = cudf.DataFrame({"a": cupy.arange(0, 1024)})

expected = df.sample(
1024, replace=replace, random_state=random_state_lib(10)
)
out = df.sample(1024, replace=replace, random_state=random_state_lib(10))
n = 1024
expected = df.sample(n, replace=replace, random_state=random_state_lib(10))
out = df.sample(n, replace=replace, random_state=random_state_lib(10))

assert_eq(expected, out)

Expand Down

0 comments on commit a7588b3

Please sign in to comment.