Skip to content

Commit 9a5dc9b

Browse files
committed
added test csv files
1 parent ab923e7 commit 9a5dc9b

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

pandas/io/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def read_csv(filepath_or_buffer, header=0, skiprows=None, index_col=0,
4242
try:
4343
# universal newline mode
4444
f = open(filepath_or_buffer, 'U')
45-
except Exception:
45+
except Exception: # pragma: no cover
4646
f = open(filepath_or_buffer, 'r')
4747

4848
reader = csv.reader(f, dialect='excel')

pandas/io/tests/test1.csv

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
index,A,B,C,D
2+
2000-01-03 00:00:00,0.980268513777,3.68573087906,-0.364216805298,-1.15973806169
3+
2000-01-04 00:00:00,1.04791624281,-0.0412318367011,-0.16181208307,0.212549316967
4+
2000-01-05 00:00:00,0.498580885705,0.731167677815,-0.537677223318,1.34627041952
5+
2000-01-06 00:00:00,1.12020151869,1.56762092543,0.00364077397681,0.67525259227
6+
2000-01-07 00:00:00,-0.487094399463,0.571454623474,-1.6116394093,0.103468562917
7+
2000-01-10 00:00:00,0.836648671666,0.246461918642,0.588542635376,1.0627820613
8+
2000-01-11 00:00:00,-0.157160753327,1.34030689438,1.19577795622,-1.09700699751

pandas/io/tests/test2.csv

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
A,B,C,D
2+
2000-01-03 00:00:00,0.980268513777,3.68573087906,-0.364216805298,-1.15973806169
3+
2000-01-04 00:00:00,1.04791624281,-0.0412318367011,-0.16181208307,0.212549316967
4+
2000-01-05 00:00:00,0.498580885705,0.731167677815,-0.537677223318,1.34627041952
5+
2000-01-06 00:00:00,1.12020151869,1.56762092543,0.00364077397681,0.67525259227
6+
2000-01-07 00:00:00,-0.487094399463,0.571454623474,-1.6116394093,0.103468562917

0 commit comments

Comments
 (0)