Skip to content

Commit

Permalink
adjust handling of pygments imports in test_pygments
Browse files Browse the repository at this point in the history
- avoids uncaught import error if pygments is not available
  • Loading branch information
freddrake committed Sep 24, 2019
1 parent 56d3e7a commit 4bff45f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZConfig/tests/test_pygments.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import pygments.token
except ImportError:
pygments = None

import ZConfig.pygments
else:
import ZConfig.pygments


class ZConfigLexerTestCase(unittest.TestCase):
Expand Down

0 comments on commit 4bff45f

Please sign in to comment.