adding OSError for linux
This commit is contained in:
@@ -3,6 +3,11 @@ try:
|
||||
except NameError:
|
||||
WindowsError = None
|
||||
|
||||
try:
|
||||
OSError
|
||||
except NameError:
|
||||
OSError = None
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = pytest.mark.django_db
|
||||
@@ -93,7 +98,7 @@ def get_random_file(filename='rowers/tests/testdata/testdata.csv',name=''):
|
||||
row = rdata(filename)
|
||||
totaldist = row.df['cum_dist'].max()
|
||||
totaltime = row.df['TimeStamp (sec)'].max()-row.df['TimeStamp (sec)'].min()
|
||||
totaltime = totaltime+row.df.ix[0,' ElapsedTime (sec)']
|
||||
totaltime = totaltime+row.df.loc[row.df.index[0],' ElapsedTime (sec)']
|
||||
|
||||
|
||||
hours = int(totaltime/3600.)
|
||||
|
||||
Reference in New Issue
Block a user