Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Failing to execute pytest or other binary commands with gflags #43

@girishsv1986

Description

@girishsv1986

Hi there,

I'm using gflags for accepting command line arguments in one of the script recently added in application. There are unit testcases in the application that I execute using pytest library. Unit test execution was working fine till the time GFLAGS library was not sys path. After adding gflags, the command line arguments provided to pytest or py.test or any other command in interpreted/interrupted by the GFlags and it ultimately throw back the following error.

python_gflags-2.0-py2.6.egg/gflags.py:1319: in call
raise UnrecognizedFlagError(opt, value)
E UnrecognizedFlagError: Unknown command line flag 'cov-config'

---------- coverage: platform linux2, python 2.7.5-final-0 -----------

Command I'm executing is mentioned below. Is there any way to disable/force gflags to ignore such commands?
py.test --cov-config .coveragerc --cov-report html --cov=.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions