From 01e9bda258335c84ab10bea5e1f7cd651633aa9c 2015-04-10 04:05:13 From: Min RK Date: 2015-04-10 04:05:13 Subject: [PATCH] handle lecture test moving to lib --- diff --git a/IPython/lib/tests/test_lexers.py b/IPython/lib/tests/test_lexers.py index 97e7ada..e67531c 100644 --- a/IPython/lib/tests/test_lexers.py +++ b/IPython/lib/tests/test_lexers.py @@ -1,24 +1,15 @@ """Test lexers module""" -#----------------------------------------------------------------------------- -# Copyright (C) 2014 The IPython Development Team -# -# Distributed under the terms of the BSD License. The full license is in -# the file COPYING, distributed as part of this software. -#----------------------------------------------------------------------------- - -#----------------------------------------------------------------------------- -# Imports -#----------------------------------------------------------------------------- + +# Copyright (c) IPython Development Team. +# Distributed under the terms of the Modified BSD License. + +from unittest import TestCase from pygments.token import Token -from jupyter_nbconvert.tests.base import TestsBase from .. import lexers -#----------------------------------------------------------------------------- -# Classes and functions -#----------------------------------------------------------------------------- -class TestLexers(TestsBase): +class TestLexers(TestCase): """Collection of lexers tests""" def setUp(self): self.lexer = lexers.IPythonLexer() diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index b64da0b..0b17ced 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -193,6 +193,8 @@ if not have['matplotlib']: sec = test_sections['lib'] if not have['zmq']: sec.exclude('kernel') +if not have['pygments']: + sec.exclude('tests.test_lexers') # We do this unconditionally, so that the test suite doesn't import # gtk, changing the default encoding and masking some unicode bugs. sec.exclude('inputhookgtk')