From 08e220a4afba07e8ed98372cb3cd28ec91653fa1 Mon Sep 17 00:00:00 2001 From: brandon-b-miller Date: Mon, 28 Mar 2022 11:37:49 -0700 Subject: [PATCH] write to temp dir, and write text rather than generator --- python/cudf/cudf/tests/test_text.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/cudf/cudf/tests/test_text.py b/python/cudf/cudf/tests/test_text.py index c332924fd8b..21c22110910 100644 --- a/python/cudf/cudf/tests/test_text.py +++ b/python/cudf/cudf/tests/test_text.py @@ -822,10 +822,10 @@ def test_read_text_byte_range(datadir): assert_eq(expected, actual) -def test_read_text_byte_range_large(datadir): - content = str(("\n" if x % 5 == 0 else "x") for x in range(0, 300000000)) +def test_read_text_byte_range_large(tmpdir): + content = str([["\n" if x % 5 == 0 else "x"] for x in range(0, 3000)]) delimiter = "1." - temp_file = str(datadir) + "/temp.txt" + temp_file = str(tmpdir) + "/temp.txt" with open(temp_file, "w") as f: f.write(content)