environment/lib/python2.7/site-packages/nose/config.py
def configure(self, argv=None, doc=None):
        """Configure the nose running environment. Execute configure before
        collecting tests with nose.TestCollector to enable output capture and
        other features.
        """
        env = self.env
        if argv is None:
            argv = sys.argv

        cfg_files = getattr(self, 'files', [])
        options, args = self._parseArgs(argv, cfg_files)
        # If -c --config has been specified on command line,
        # load those config files and reparse
        if getattr(options, 'files', []):
            options, args = self._parseArgs(argv, options.files)

        self.options = options
        if args:
            self.testNames = args
        if options.testNames is not None:
            self.testNames.extend(tolist(options.testNames))

        if options.py3where is not None:
            if sys.version_info >= (3,):
                options.where = options.py3where

        # `where` is an append action, so it can't have a default value
        # in the parser, or that default will always be in the list
        if not options.where:
            options.where = env.get('NOSE_WHERE', None)

        # include and exclude also
        if not options.ignoreFiles:
            options.ignoreFiles = env.get('NOSE_IGNORE_FILES', [])
        if not options.include:
            options.include = env.get('NOSE_INCLUDE', [])
        if not options.exclude:
            options.exclude = env.get('NOSE_EXCLUDE', [])

        self.addPaths = options.addPaths
        self.stopOnError = options.stopOnError
        self.verbosity = options.verbosity
        self.includeExe = options.includeExe
        self.traverseNamespace = options.traverseNamespace
        self.debug = options.debug
        self.debugLog = options.debugLog
        self.loggingConfig = options.loggingConfig
        self.firstPackageWins = options.firstPackageWins
        self.configureLogging()

        if options.where is not None:
            self.configureWhere(options.where)

        if options.testMatch:
            self.testMatch = re.compile(options.testMatch)

        if options.ignoreFiles:
            self.ignoreFiles = map(re.compile, tolist(options.ignoreFiles))
            log.info("Ignoring files matching %s", options.ignoreFiles)
        else:
            log.info("Ignoring files matching %s", self.ignoreFilesDefaultStrings)

        if options.include:
            self.include = map(re.compile, tolist(options.include))
            log.info("Including tests matching %s", options.include)

        if options.exclude:
            self.exclude = map(re.compile, tolist(options.exclude))
            log.info("Excluding tests matching %s", options.exclude)

        # When listing plugins we don't want to run them
        if not options.showPlugins:
            self.plugins.configure(options, self)
            self.plugins.begin()
def configure(self, argv=None, doc=None):
        env = self.env
        if argv is None:
            argv = sys.argv

        cfg_files = getattr(self, 'files', [])
        options, args = self._parseArgs(argv, cfg_files)
        # If -c --config has been specified on command line,
        # load those config files and reparse
        if getattr(options, 'files', []):
            options, args = self._parseArgs(argv, options.files)

        self.options = options
        if args:
            self.testNames = args
        if options.testNames is not None:
            self.testNames.extend(tolist(options.testNames))

        if options.py3where is not None:
            if sys.version_info >= (3,):
                options.where = options.py3where

        # `where` is an append action, so it can't have a default value
        # in the parser, or that default will always be in the list
        if not options.where:
            options.where = env.get('NOSE_WHERE', None)

        # include and exclude also
        if not options.ignoreFiles:
            options.ignoreFiles = env.get('NOSE_IGNORE_FILES', [])
        if not options.include:
            options.include = env.get('NOSE_INCLUDE', [])
        if not options.exclude:
            options.exclude = env.get('NOSE_EXCLUDE', [])

        self.addPaths = options.addPaths
        self.stopOnError = options.stopOnError
        self.verbosity = options.verbosity
        self.includeExe = options.includeExe
        self.traverseNamespace = options.traverseNamespace
        self.debug = options.debug
        self.debugLog = options.debugLog
        self.loggingConfig = options.loggingConfig
        self.firstPackageWins = options.firstPackageWins
        self.configureLogging()

        if options.where is not None:
            self.configureWhere(options.where)

        if options.testMatch:
            self.testMatch = re.compile(options.testMatch)

        if options.ignoreFiles:
            self.ignoreFiles = map(re.compile, tolist(options.ignoreFiles))
            log.info("Ignoring files matching %s", options.ignoreFiles)
        else:
            log.info("Ignoring files matching %s", self.ignoreFilesDefaultStrings)

        if options.include:
            self.include = map(re.compile, tolist(options.include))
            log.info("Including tests matching %s", options.include)

        if options.exclude:
            self.exclude = map(re.compile, tolist(options.exclude))
            log.info("Excluding tests matching %s", options.exclude)

        # When listing plugins we don't want to run them
        if not options.showPlugins:
            self.plugins.configure(options, self)
            self.plugins.begin()
def configure ( self , argv = None , doc = None ) : env = self . env if argv is None : argv = sys . argv cfg_files = getattr ( self , 'files' , [ ] ) options , args = self . _parseArgs ( argv , cfg_files ) # If -c --config has been specified on command line, # load those config files and reparse if getattr ( options , 'files' , [ ] ) : options , args = self . _parseArgs ( argv , options . files ) self . options = options if args : self . testNames = args if options . testNames is not None : self . testNames . extend ( tolist ( options . testNames ) ) if options . py3where is not None : if sys . version_info >= ( 3 , ) : options . where = options . py3where # `where` is an append action, so it can't have a default value # in the parser, or that default will always be in the list if not options . where : options . where = env . get ( 'NOSE_WHERE' , None ) # include and exclude also if not options . ignoreFiles : options . ignoreFiles = env . get ( 'NOSE_IGNORE_FILES' , [ ] ) if not options . include : options . include = env . get ( 'NOSE_INCLUDE' , [ ] ) if not options . exclude : options . exclude = env . get ( 'NOSE_EXCLUDE' , [ ] ) self . addPaths = options . addPaths self . stopOnError = options . stopOnError self . verbosity = options . verbosity self . includeExe = options . includeExe self . traverseNamespace = options . traverseNamespace self . debug = options . debug self . debugLog = options . debugLog self . loggingConfig = options . loggingConfig self . firstPackageWins = options . firstPackageWins self . configureLogging ( ) if options . where is not None : self . configureWhere ( options . where ) if options . testMatch : self . testMatch = re . compile ( options . testMatch ) if options . ignoreFiles : self . ignoreFiles = map ( re . compile , tolist ( options . ignoreFiles ) ) log . info ( "Ignoring files matching %s" , options . ignoreFiles ) else : log . info ( "Ignoring files matching %s" , self . ignoreFilesDefaultStrings ) if options . include : self . include = map ( re . compile , tolist ( options . include ) ) log . info ( "Including tests matching %s" , options . include ) if options . exclude : self . exclude = map ( re . compile , tolist ( options . exclude ) ) log . info ( "Excluding tests matching %s" , options . exclude ) # When listing plugins we don't want to run them if not options . showPlugins : self . plugins . configure ( options , self ) self . plugins . begin ( )
Configure the nose running environment. Execute configure before
        collecting tests with nose.TestCollector to enable output capture and
        other features.
Configure the nose running environment . Execute configure before collecting tests with nose . TestCollector to enable output capture and other features .