Skip to content

Commit 1a0b2cf

Browse files
fix
1 parent 2f8ac63 commit 1a0b2cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/io/test_sql.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4389,6 +4389,8 @@ def test_bytes_column(con, dtype_backend, request):
43894389
if "postgres" in con and "psycopg2" in con:
43904390
if dtype_backend == "numpy_nullable":
43914391
dtype = pd.StringDtype()
4392+
elif dtype_backend == lib.no_default and pd.options.future.infer_string:
4393+
dtype = pd.StringDtype(storage="pyarrow", na_value=np.nan)
43924394

43934395
expected = DataFrame([{"a": val}], dtype=dtype)
43944396
df = pd.read_sql(

0 commit comments

Comments
 (0)