diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-04-25 10:44:31 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-04-25 10:44:31 +0200 |
commit | e915a1ad2ac7d8bacdfaf0f624c450e80dd858dd (patch) | |
tree | af0ff3055468f73d33e9f0f5c011f5bd1e52ad0e | |
parent | 6c7a859d2bf22942021a8146ff80e7695c2d4917 (diff) | |
download | pylint-e915a1ad2ac7d8bacdfaf0f624c450e80dd858dd.tar.gz |
[test] move gtk enum crash test out of automatic functional tests,
it depends on pygtk being installed so require specific attention
-rw-r--r-- | test/regrtest_data/pygtk_enum_crash.py (renamed from test/input/func_noerror_crash_124337.py) | 0 | ||||
-rw-r--r-- | test/test_regr.py | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/input/func_noerror_crash_124337.py b/test/regrtest_data/pygtk_enum_crash.py index 8ac9e57..8ac9e57 100644 --- a/test/input/func_noerror_crash_124337.py +++ b/test/regrtest_data/pygtk_enum_crash.py diff --git a/test/test_regr.py b/test/test_regr.py index 665abc4..c124858 100644 --- a/test/test_regr.py +++ b/test/test_regr.py @@ -86,6 +86,17 @@ class NonRegrTC(TestCase): got = linter.reporter.finalize().strip() self.assertEqual(got, '') + def test_gtk_enum_crash(self): + try: + import gtk + except ImportError: + self.skipTest('test skipped: gtk is not available') + except RuntimeError: # RuntimeError when missing display + self.skipTest('no display, can\'t run this test') + linter.check(join(REGR_DATA, 'pygtk_enum_crash.py')) + got = linter.reporter.finalize().strip() + self.assertEqual(got, '') + def test_numarray_inference(self): try: from numarray import random_array |