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

Open

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=.

Activity

  1. jhagege commented on Mar 13, 2019

    @jhagege

    Did you find a solution ?

  2. girishsv1986 commented on Mar 13, 2019

    @girishsv1986
    Author

    No, didn't got any solution, yet to look into library code and how it can be skipped or ignored

  3. jhagege commented on Mar 16, 2019

    @jhagege

    Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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