Skip to content

Commit 6da55aa

Browse files
committed
Parallelize test_sql.py - minor change to xdist import statement
1 parent 297c912 commit 6da55aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/test_sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import numpy as np
1919
import pytest
20-
import xdist
2120

2221
from pandas._config import using_string_dtype
2322

@@ -903,6 +902,7 @@ def worker_name(request):
903902
:return: Name to use for creating/accessing an isolated SQL database
904903
:rtype: str
905904
"""
905+
xdist = pytest.importorskip("xdist")
906906
return xdist.get_xdist_worker_id(request)
907907

908908

0 commit comments

Comments
 (0)