Sha256: a59291f7a3ef565e12a0dfbcaf72d6e6613e0e80d29f5c2e95f3870d60f87678

Contents?: true

Size: 951 Bytes

Versions: 5

Compression:

Stored size: 951 Bytes

Contents

# -*- coding: utf-8 -*-
"""
    Pygments unit tests
    ~~~~~~~~~~~~~~~~~~

    Usage::

        python run.py [testfile ...]


    :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
"""

from __future__ import print_function

import sys, os

# only find tests in this directory
if os.path.dirname(__file__):
    os.chdir(os.path.dirname(__file__))


try:
    import nose
except ImportError:
    print('nose is required to run the Pygments test suite')
    sys.exit(1)

try:
    # make sure the current source is first on sys.path
    sys.path.insert(0, '..')
    import pygments
except SyntaxError as err:
    print('Syntax error: %s' % err)
    sys.exit(1)
except ImportError as err:
    print('Cannot find Pygments to test: %s' % err)
    sys.exit(1)
else:
    print('Pygments %s test suite running (Python %s)...' %
          (pygments.__version__, sys.version.split()[0]))

nose.main()

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/run.py
pygments.rb-0.6.3 vendor/pygments-main/tests/run.py
pygments.rb-0.6.2 vendor/pygments-main/tests/run.py
pygments.rb-0.6.1 vendor/pygments-main/tests/run.py
pygments.rb-0.6.0 vendor/pygments-main/tests/run.py