Skip to content

Commit 514fb85

Browse files
author
jpellerin
committed
Added a skip for jython
1 parent 423ae34 commit 514fb85

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎unit_tests/test_config.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
import unittest
55
import warnings
66
import pickle
7+
import sys
78

89
import nose.config
910
from nose.plugins.manager import DefaultPluginManager
11+
from nose.plugins.skip import SkipTest
1012

1113

1214
class TestNoseConfig(unittest.TestCase):
@@ -88,6 +90,8 @@ def test_pickle_empty(self):
8890
cc = pickle.loads(cp)
8991

9092
def test_pickle_configured(self):
93+
if 'java' in sys.version.lower():
94+
raise SkipTest("jython has no profiler plugin")
9195
c = nose.config.Config(plugins=DefaultPluginManager())
9296
c.configure(['--with-doctest', '--with-coverage', '--with-profile',
9397
'--with-id', '--attr=A', '--collect', '--all',

0 commit comments

Comments
 (0)