# Path: test.py
# def run_tests():


import unittest
import sys
import gc
import gauged
from ConfigParser import ConfigParser
from test import (TestGauged, TestStructures, TestLRU, TestDriver,
                  TestDSN, TestResult)
            gauged_instance = gauged.Gauged(dsn)
            # Empty the data store
            gauged_instance.driver.drop_schema()
            gauged_instance.sync()
            gauged_instance.driver.create_schema()
            # Test the driver class
            test_class = type('Test%s' % driver, (TestDriver,), {})
            test_class.driver = gauged_instance.driver
            suite.addTest(unittest.makeSuite(test_class))
            # Test gauged/gauged.py using the driver
            if not drivers_only:
                test_class = type('TestGaugedWith%s' % driver,
                                  (TestGauged,), {})
                test_class.driver = gauged_instance.driver
                suite.addTest(unittest.makeSuite(test_class))
        except Exception as e:  # pylint: disable=broad-except
            print 'Skipping %s tests (%s). Check test_driver.cfg' % \
                (driver[:-6], str(e).rstrip())
            if raise_on_error:
                raise

    if test_class is None:
        raise RuntimeWarning('No drivers available for unit tests, check '
                             'configuration in test_driver.cfg')

    # Test the remaining classes
    if not drivers_only:
        suite.addTest(unittest.makeSuite(TestStructures))
        suite.addTest(unittest.makeSuite(TestLRU))
        suite.addTest(unittest.makeSuite(TestDSN))

# Path: test.py
# def run_tests():


# Path: test.py
import unittest
import sys
import gc
import gauged
from ConfigParser import ConfigParser
from test import (TestGauged, TestStructures, TestLRU, TestDriver,
                  TestDSN, TestResult)

            gauged_instance = gauged.Gauged(dsn)
            # Empty the data store
            gauged_instance.driver.drop_schema()
            gauged_instance.sync()
            gauged_instance.driver.create_schema()
            # Test the driver class
            test_class = type('Test%s' % driver, (TestDriver,), {})
            test_class.driver = gauged_instance.driver
            suite.addTest(unittest.makeSuite(test_class))
            # Test gauged/gauged.py using the driver
            if not drivers_only:
                test_class = type('TestGaugedWith%s' % driver,
                                  (TestGauged,), {})
                test_class.driver = gauged_instance.driver
                suite.addTest(unittest.makeSuite(test_class))
        except Exception as e:  # pylint: disable=broad-except
            print 'Skipping %s tests (%s). Check test_driver.cfg' % \
                (driver[:-6], str(e).rstrip())
            if raise_on_error:
                raise

    if test_class is None:
        raise RuntimeWarning('No drivers available for unit tests, check '
                             'configuration in test_driver.cfg')

    # Test the remaining classes
    if not drivers_only:
        suite.addTest(unittest.makeSuite(TestStructures))
        suite.addTest(unittest.makeSuite(TestLRU))
        suite.addTest(unittest.makeSuite(TestDSN))

        suite.addTest(unittest.makeSuite(TestResult))