# Path: textblob_de/compat.py
# PY2 = int(sys.version[0]) == 2
# 
# PY26 = PY2 and int(sys.version_info[1]) < 7


import nose
import sys
from textblob_de.compat import PY2, PY26
Skip slow tests: ::

    python run_tests.py fast

Code imported from ``textblob-fr`` sample extension.

:repo: `https://github.com/sloria/textblob-fr`_
:source: run_tests.py
:version: 2013-09-18 (1a8438b5ea)

"""
from __future__ import unicode_literals



def main():
    args = get_argv()
    success = nose.run(argv=args)
    sys.exit(0) if success else sys.exit(1)


def get_argv():
    args = [sys.argv[0], ]
    attr_conditions = []  # Use nose's attribselect plugin to filter tests
    if "force-all" in sys.argv:
        # Don't exclude any tests
        return args
    if PY26:
        # Exclude tests that don't work on python2.6
        attr_conditions.append("not py27_only")

# Path: textblob_de/compat.py
# PY2 = int(sys.version[0]) == 2
# 
# PY26 = PY2 and int(sys.version_info[1]) < 7


# Path: run_tests.py
import nose
import sys
from textblob_de.compat import PY2, PY26

Skip slow tests: ::

    python run_tests.py fast

Code imported from ``textblob-fr`` sample extension.

:repo: `https://github.com/sloria/textblob-fr`_
:source: run_tests.py
:version: 2013-09-18 (1a8438b5ea)

"""
from __future__ import unicode_literals



def main():
    args = get_argv()
    success = nose.run(argv=args)
    sys.exit(0) if success else sys.exit(1)


def get_argv():
    args = [sys.argv[0], ]
    attr_conditions = []  # Use nose's attribselect plugin to filter tests
    if "force-all" in sys.argv:
        # Don't exclude any tests
        return args
    if PY26:
        # Exclude tests that don't work on python2.6
        attr_conditions.append("not py27_only")

    if not PY2: