# Path: pygr/logger.py
# PYTHON_25 = sys.version_info >= (2, 5)
# def get_logger(name='pygr-log', stream=sys.stdout, formatter=None):
# def disable(level=0):
# def test(verbose=0):


import os
import re
import shutil
import sys
import unittest
from testlib import testutil, testoptions
from testlib.unittest_extensions import PygrTestRunner
from pygr import logger
            results = runner.run(suite)
            logger.disable(0)                  # clear global override

            # count tests and errors
            success += results.testsRun - \
                       len(results.errors) - \
                       len(results.failures) - \
                       len(results.skipped)

            errors += len(results.errors) + len(results.failures)
            skipped += len(results.skipped)

            # if we're in strict mode stop on errors
            if options.strict and errors:
                testutil.error("strict mode stops on errors")
                break

        except ImportError:
            testutil.error("unable to import module '%s'" % name)

    # summarize the run
    testutil.info('=' * 59)
    testutil.info('''\
%s tests passed, %s tests failed, %s tests skipped; %d total''' % \
                  (success, errors, skipped, success + errors + skipped))

    return (success, errors, skipped)

if __name__ == '__main__':
    # Make sure no messages are filtered out at first

# Path: pygr/logger.py
# PYTHON_25 = sys.version_info >= (2, 5)
# def get_logger(name='pygr-log', stream=sys.stdout, formatter=None):
# def disable(level=0):
# def test(verbose=0):


# Path: tests/runtest.py
import os
import re
import shutil
import sys
import unittest
from testlib import testutil, testoptions
from testlib.unittest_extensions import PygrTestRunner
from pygr import logger

            results = runner.run(suite)
            logger.disable(0)                  # clear global override

            # count tests and errors
            success += results.testsRun - \
                       len(results.errors) - \
                       len(results.failures) - \
                       len(results.skipped)

            errors += len(results.errors) + len(results.failures)
            skipped += len(results.skipped)

            # if we're in strict mode stop on errors
            if options.strict and errors:
                testutil.error("strict mode stops on errors")
                break

        except ImportError:
            testutil.error("unable to import module '%s'" % name)

    # summarize the run
    testutil.info('=' * 59)
    testutil.info('''\
%s tests passed, %s tests failed, %s tests skipped; %d total''' % \
                  (success, errors, skipped, success + errors + skipped))

    return (success, errors, skipped)

if __name__ == '__main__':
    # Make sure no messages are filtered out at first

    logger.disable(0)