Private
Public Access
1
0

adding OSError for linux

This commit is contained in:
Sander Roosendaal
2019-02-08 21:06:15 +01:00
parent 98a4c36631
commit 0545ee6d06
18 changed files with 72590 additions and 85 deletions

View File

@@ -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.)