Skip to content

Commit e14226c

Browse files
committed
Use core.osgrelease decorator for the setUp tests
Since it's cleaner than raising ExcludedException directly
1 parent 9d375fa commit e14226c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

osgtest/tests/test_160_rsv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
class TestStartRSV(osgunittest.OSGTestCase):
77

8+
@core.osgrelease(3.4)
89
def setUp(self):
9-
if core.osg_release() != '3.4':
10-
raise osgunittest.ExcludedException("excluding for OSG %s" % core.osg_release().version)
10+
pass
1111

1212
def test_01_config(self):
1313
pass

osgtest/tests/test_470_rsv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class TestRSV(osgunittest.OSGTestCase):
2626

2727
host = socket.getfqdn()
2828

29+
@core.osgrelease(3.4)
2930
def setUp(self):
30-
if core.osg_release() != '3.4':
31-
raise osgunittest.ExcludedException("excluding for OSG %s" % core.osg_release().version)
31+
pass
3232

3333
def start_rsv(self):
3434
core.check_system(('rsv-control', '--on'), 'rsv-control --on')

osgtest/tests/test_830_rsv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
class TestStopRSV(osgunittest.OSGTestCase):
88

9+
@core.osgrelease(3.4)
910
def setUp(self):
10-
if core.osg_release() != '3.4':
11-
raise osgunittest.ExcludedException("excluding for OSG %s" % core.osg_release().version)
11+
pass
1212

1313
def test_01_stop_rsv(self):
1414
core.skip_ok_unless_installed('rsv')

0 commit comments

Comments
 (0)