adding OSError for linux
This commit is contained in:
@@ -67,7 +67,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 1
|
||||
@@ -80,7 +80,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 2
|
||||
@@ -93,7 +93,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 3
|
||||
@@ -106,7 +106,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 4
|
||||
@@ -119,7 +119,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 5
|
||||
@@ -132,7 +132,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 6
|
||||
@@ -145,7 +145,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 7
|
||||
@@ -158,7 +158,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 8
|
||||
@@ -171,7 +171,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 13
|
||||
@@ -184,7 +184,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
@patch('rowers.tasks.rdata')
|
||||
@@ -206,7 +206,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 1
|
||||
@@ -219,7 +219,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 2
|
||||
@@ -232,7 +232,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 3
|
||||
@@ -245,7 +245,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 4
|
||||
@@ -258,7 +258,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 5
|
||||
@@ -271,7 +271,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 6
|
||||
@@ -284,7 +284,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 7
|
||||
@@ -297,7 +297,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 8
|
||||
@@ -310,7 +310,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 9
|
||||
@@ -323,7 +323,7 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
plotnr = 13
|
||||
@@ -336,5 +336,5 @@ class PlotTests(TestCase):
|
||||
filename=fullpathimagename)
|
||||
try:
|
||||
os.remove(fullpathimagename)
|
||||
except WindowsError:
|
||||
except (WindowsError,OSError):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user