File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ jobs:
205
205
cancel-in-progress : true
206
206
env :
207
207
PANDAS_CI : 1
208
- PYTEST_TARGET : pandas/tests/io/test_common.py
208
+ PYTEST_TARGET : pandas
209
209
PATTERN : " not slow and not db and not network and not single_cpu"
210
210
PYTEST_WORKERS : ' auto'
211
211
Original file line number Diff line number Diff line change @@ -729,14 +729,14 @@ def _read(
729
729
glob = kwds .get ("glob" , None )
730
730
files = iterdir (filepath_or_buffer , extensions , glob )
731
731
732
- if isinstance ( files , list ) and not files :
732
+ if not files :
733
733
raise FileNotFoundError (
734
734
f"No files found in { filepath_or_buffer } , "
735
735
f"with extension(s) { extensions } and glob pattern { glob } "
736
736
)
737
737
738
- if ( isinstance ( files , list ) and len (files ) == 1 ) or not isinstance ( files , list ) :
739
- file = files [0 ] if isinstance ( files , list ) else files
738
+ if len (files ) == 1 :
739
+ file = files [0 ]
740
740
parser = TextFileReader (file , ** kwds )
741
741
742
742
if chunksize or iterator :
You can’t perform that action at this time.
0 commit comments